-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDPA-2703][SDPA-2704][SDPA-2706] Docker file update (#408)
* Docker file update * Updated storybook docker file * corrected filename * Removed auth env var * Removed site id from env var * update permission bit for ~/config * Changed env var to minimal * Fixed site id type issue * fixed wrong env setting * Updated docker file for monorepo * Fixed command in docker file
- Loading branch information
Showing
21 changed files
with
180 additions
and
197 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This is for reference site. | ||
FROM amazeeio/node:10-builder as builder | ||
COPY . /app/ | ||
|
||
# Remove storybook from reference site | ||
RUN rm /app/packages/ripple-ui-components/package.json \ | ||
&& mv /app/scripts/jira-post-comment-app.sh /app/scripts/jira-post-comment.sh \ | ||
&& yarn install | ||
|
||
FROM amazeeio/node:10 | ||
COPY --from=builder /app/. /app/ | ||
|
||
ARG LAGOON_GIT_BRANCH | ||
ENV LAGOON_GIT_BRANCH ${LAGOON_GIT_BRANCH} | ||
|
||
WORKDIR /app/examples/vic-gov-au/ | ||
RUN yarn run build \ | ||
&& chmod -R 755 ~/.config \ | ||
# force it to load the environment variable during build time. Otherwise it cannot read $LAGOON_GIT_BRANCH. | ||
&& . /home/.bashrc \ | ||
# For JIRA commit script work. | ||
&& if [ $LAGOON_GIT_BRANCH != "production" ] ; then apk --update add curl; fi | ||
|
||
ENV HOST 0.0.0.0 | ||
EXPOSE 3000 | ||
|
||
CMD ["yarn", "run", "start"] |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM amazeeio/node:10-builder as builder | ||
|
||
COPY packages/ripple-ui-components /app/packages/ripple-ui-components | ||
COPY package.json yarn.lock .eslintrc.js .babelrc /app/ | ||
RUN yarn install | ||
WORKDIR /app/packages/ripple-ui-components | ||
RUN yarn run build-storybook | ||
|
||
FROM amazeeio/node:10 | ||
COPY --from=builder /app/packages/ripple-ui-components/public /app | ||
COPY scripts/jira-post-comment-storybook.sh /app/scripts/jira-post-comment.sh | ||
|
||
ARG LAGOON_GIT_BRANCH | ||
ENV LAGOON_GIT_BRANCH ${LAGOON_GIT_BRANCH} | ||
|
||
RUN npm config set unsafe-perm true \ | ||
&& npm install http-server -g \ | ||
# force it to load the environment variable during build time. Otherwise it cannot read $LAGOON_GIT_BRANCH. | ||
&& . /home/.bashrc \ | ||
# For JIRA commit script work. | ||
&& if [ $LAGOON_GIT_BRANCH != "production" ] ; then apk --update add curl; fi | ||
|
||
ENV HOST 0.0.0.0 | ||
EXPOSE 3000 | ||
|
||
CMD ["http-server", "-p", "3000"] |
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
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,27 +1,18 @@ | ||
version: '2' | ||
services: | ||
storybook: | ||
build: | ||
dockerfile: Dockerfile.local | ||
networks: | ||
- amazeeio-network | ||
- default | ||
volumes: | ||
- .:/app:delegated | ||
- /app/node_modules | ||
environment: | ||
LAGOON_ENVIRONMENT_TYPE: 'local' | ||
test: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.test | ||
app: | ||
networks: | ||
- amazeeio-network | ||
- default | ||
environment: | ||
LAGOON_ENVIRONMENT_TYPE: 'local' | ||
ports: | ||
- "9002:3000" | ||
BASIC_AUTH: 0 | ||
networks: | ||
amazeeio-network: | ||
external: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copy this .env.example to .env in your local dev environment. | ||
|
||
# Use below setting if you need to run this project docker in local. | ||
# COMPOSE_FILE=docker-compose.yml:docker-compose.local.yml |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copy this .env.example to .env in your local dev environment. | ||
# Tide API | ||
CONTENT_API_SERVER= | ||
CONTENT_API_AUTH_USER= | ||
CONTENT_API_AUTH_PASS= | ||
|
||
# Google Tag Manager ID goes here - Google analytics, etc are managed through GTM | ||
GTM_ID= | ||
|
||
# This will enable Nuxt debug and display error details. | ||
DISPLAY_ERROR=1 | ||
|
||
# Search settings | ||
SEARCH_HASH= | ||
SEARCH_SERVICE=elasticsearch | ||
SEARCH_INDEX= | ||
SEARCH_URL= | ||
SEARCH_LOG=trace | ||
SEARCH_AUTH_USERNAME= | ||
SEARCH_AUTH_PASSWORD= | ||
|
||
# Disable basic auth in local env. | ||
BASIC_AUTH=1 |
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
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
Oops, something went wrong.