forked from hashtopolis/web-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for building behind TLS/IDS (in dev container)
Dev container build uses npm install within docker-entrypoint.sh to populate the packages. this is slower then 'npm ci' how-ever more robust and allows for further development/package changes. This required to split the docker into more stages allowing both dev and production images. While here start working on fixes for docker compose production build. Some changes by zyronix seems to be lost somehow.
- Loading branch information
Showing
7 changed files
with
78 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CONTAINER_USER_CMD_PRE='cat > /usr/local/share/ca-certificates/corporate_ca.crt << EOF | ||
-----BEGIN CERTIFICATE----- | ||
<<< INSERT_PEM_FORMATTED_ROOT_CA_CHAIN_HERE >>> | ||
-----END CERTIFICATE----- | ||
EOF | ||
update-ca-certificates --fresh | ||
echo "openssl.cafile=/etc/ssl/certs/ca-certificates.crt" > /usr/local/etc/php/conf.d/corporate-cert.ini | ||
mkdir -p /usr/etc/ | ||
|
||
# NPM repository cache example | ||
echo "registry=https://nexus.example.com/repository/npm-all/" > /usr/etc/npmrc | ||
' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
container_name: hashtopolis-web-ui-dev | ||
build: | ||
context: .. | ||
dockerfile: Dockerfile | ||
target: hashtopolis-web-ui-dev | ||
ports: | ||
- "4200:4200" | ||
volumes: | ||
version: "3.8" | ||
services: | ||
hashtopolis-web-ui-dev: | ||
container_name: hashtopolis-web-ui-dev | ||
build: | ||
context: .. | ||
target: hashtopolis-web-ui-dev | ||
args: | ||
- CONTAINER_USER_CMD_PRE | ||
- CONTAINER_USER_CMD_POST | ||
ports: | ||
- "4200:4200" | ||
volumes: | ||
# This is where VS Code should expect to find your project's source code | ||
# and the value of "workspaceFolder" in .devcontainer/devcontainer.json | ||
- ..:/app | ||
networks: | ||
- hashtopolis_dev | ||
|
||
networks: | ||
hashtopolis_dev: | ||
# This network will also be used by the python-agent | ||
name: hashtopolis_dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
#!/bin/sh | ||
export PUPPETEER_SKIP_DOWNLOAD='true' | ||
echo "Waiting for workspace to be mounted" | ||
|
||
echo -n "Waiting for workspace to be mounted..." | ||
until [ -f /app/package.json ] | ||
do | ||
sleep 5 | ||
done | ||
echo "Workspace mounted" | ||
echo "DONE" | ||
|
||
npm install | ||
npm start | ||
npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ git-version.json | |
|
||
# Config file | ||
config.json | ||
.devcontainer/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters