Skip to content

Commit

Permalink
ci:
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTubongbanua committed Jul 4, 2023
1 parent d95ea86 commit 2f1b4b8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/end2end_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Docker Compose
working-directory: packages/sshnoports/test/end2end_tests
run: |
docker-compose up --build --abort-on-container-exit
docker compose up --build --abort-on-container-exit
- name: View containers
run: |
Expand Down
10 changes: 5 additions & 5 deletions packages/sshnoports/test/end2end_tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ services:
build:
context: ./image
dockerfile: ./Dockerfile
target: branch-build
target: build-branch
args:
- branch=trunk
image: atsigncompany/sshnp-e2e-build:trunk
image: atsigncompany/sshnp-e2e-build:branch-trunk
deploy:
mode: replicated
replicas: 0
Expand All @@ -17,14 +17,14 @@ services:
context: ./image
dockerfile: ./Dockerfile
target: runtime-branch
image: atsigncompany/sshnp-e2e-runtime:trunk
image: atsigncompany/sshnp-e2e-runtime:branch-trunk
deploy:
mode: replicated
replicas: 0
depends_on:
- image-build-trunk
container-trunk-sshnpd:
image: atsigncompany/sshnp-e2e-runtime:trunk
image: atsigncompany/sshnp-e2e-runtime:branch-trunk
container_name: sshnpd_trunk
volumes:
- ./contexts/sshnpd/keys/:/atsign/.atsign/keys/ # mount keys
Expand All @@ -33,7 +33,7 @@ services:
- image-build-trunk
- image-runtime-trunk
container-trunk-sshnp:
image: atsigncompany/sshnp-e2e-runtime:trunk
image: atsigncompany/sshnp-e2e-runtime:branch-trunk
container_name: sshnp_trunk
volumes:
- ./contexts/sshnp/keys/:/atsign/.atsign/keys/ # mount keys
Expand Down
12 changes: 6 additions & 6 deletions packages/sshnoports/test/end2end_tests/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM dart:3.0.5@sha256:65e5f5d6d72ad2f7b32f402c01b5fe8a426455b1ede1e9f840f95a2a8c14afbd AS branch-build
FROM dart:3.0.5@sha256:65e5f5d6d72ad2f7b32f402c01b5fe8a426455b1ede1e9f840f95a2a8c14afbd AS build-branch

ENV URL=https://github.com/atsign-foundation/sshnoports.git
ENV REPO_DIR=/app/repo
Expand All @@ -19,7 +19,7 @@ RUN mkdir -p ${REPO_DIR} ${OUTPUT_DIR} ; \
# dart compile exe ${BUILDDIR}/repo/bin/sshrvd.dart -o ${BUILDDIR}/bin/sshrvd ; \
# dart compile exe ${BUILDDIR}/repo/bin/activate_cli.dart -o ${BUILDDIR}/bin/at_activate ;

FROM dart:3.0.5@sha256:65e5f5d6d72ad2f7b32f402c01b5fe8a426455b1ede1e9f840f95a2a8c14afbd AS local-build
FROM dart:3.0.5@sha256:65e5f5d6d72ad2f7b32f402c01b5fe8a426455b1ede1e9f840f95a2a8c14afbd AS build-local

ENV REPO_DIR=/app/repo
ENV OUTPUT_DIR=/app/output
Expand All @@ -36,7 +36,7 @@ RUN cd ${REPO_DIR} ; \
# dart compile exe ${REPO_DIR}/bin/sshrvd.dart -o ${OUTPUTDIR}/sshrvd ; \
# dart compile exe ${REPO_DIR}/bin/activate_cli.dart -o ${OUTPUTDIR}/at_activate ;

FROM debian:stable-20230612-slim@sha256:b09f68bffcf9c14f3105f262e92321d05abaf48460d1f43f884325bcd4395b95 AS release-build
FROM debian:stable-20230612-slim@sha256:b09f68bffcf9c14f3105f262e92321d05abaf48460d1f43f884325bcd4395b95 AS build-release

ARG release="3.3.0"

Expand Down Expand Up @@ -90,7 +90,7 @@ RUN set -eux ; \

FROM base AS runtime-branch

COPY --chown=${USER}:${USER} --from=branch-build /app/output ${HOMEDIR}/.local/bin
COPY --chown=${USER}:${USER} --from=build-branch /app/output ${HOMEDIR}/.local/bin

WORKDIR ${HOMEDIR}

Expand All @@ -100,7 +100,7 @@ ENTRYPOINT sudo service ssh start && sh ${HOMEDIR}/entrypoint.sh

FROM base AS runtime-release

COPY --chown=${USER}:${USER} --from=release-build /app/output ${HOMEDIR}/.local/bin
COPY --chown=${USER}:${USER} --from=build-release /app/output ${HOMEDIR}/.local/bin

WORKDIR ${HOMEDIR}

Expand All @@ -110,7 +110,7 @@ ENTRYPOINT sudo service ssh start && sh ${HOMEDIR}/entrypoint.sh

FROM base AS runtime-local

COPY --chown=${USER}:${USER} --from=local-build /app/output ${HOMEDIR}/.local/bin
COPY --chown=${USER}:${USER} --from=build-local /app/output ${HOMEDIR}/.local/bin

WORKDIR ${HOMEDIR}

Expand Down

0 comments on commit 2f1b4b8

Please sign in to comment.