-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from medic/arch-v3
Arch v3
- Loading branch information
Showing
15 changed files
with
368 additions
and
123 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
Dockerfile |
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,12 @@ | ||
[submodule "tests/bash/bats"] | ||
path = tests/bash/bats | ||
url = https://github.com/bats-core/bats-core.git | ||
[submodule "tests/bash/test_helper/bats-support"] | ||
path = tests/bash/test_helper/bats-support | ||
url = https://github.com/bats-core/bats-support.git | ||
[submodule "tests/bash/test_helper/bats-assert"] | ||
path = tests/bash/test_helper/bats-assert | ||
url = https://github.com/bats-core/bats-assert.git | ||
[submodule "tests/bash/test_helper/bats-shell-mock"] | ||
path = tests/bash/test_helper/bats-shell-mock | ||
url = https://github.com/capitalone/bash_shell_mock |
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,12 +1,23 @@ | ||
ARG node_version | ||
FROM node:$node_version | ||
|
||
WORKDIR /usr/app | ||
|
||
COPY package.json . | ||
COPY package-lock.json . | ||
|
||
#base Build | ||
ARG node_version=10 | ||
FROM node:$node_version as base_couch2pg_build | ||
RUN apt-get update | ||
RUN apt-get -y install postgresql-client curl | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm ci | ||
|
||
#Test build | ||
FROM base_couch2pg_build AS test-couch2pg | ||
WORKDIR /app | ||
RUN git submodule update --init | ||
RUN npm i -g grunt-cli | ||
|
||
COPY . . | ||
|
||
# Final | ||
FROM base_couch2pg_build AS cht-couch2pg | ||
LABEL Authors="MEDIC SRE TEAM<[email protected]>" | ||
WORKDIR /app | ||
RUN rm -rf tests | ||
ENTRYPOINT [ "/app/couch2pg-entrypoint.sh" ] | ||
CMD ["main"] |
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.