Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
switch binary type
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Feb 2, 2023
1 parent b77970a commit 1b10c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ ENV DEPS \
RUN apk --no-cache --quiet add ${DEPS}

# Install Con-PCA-Tasks binary file
RUN wget "https://github.com/cisagov/con-pca-tasks/releases/download/v0.0.1/pca-linux-amd64"
RUN mv pca-linux-amd64 /bin/pca
RUN wget "https://github.com/cisagov/con-pca-tasks/releases/download/v0.0.1/pca-linux-arm64"
RUN mv pca-linux-arm64 /bin/pca

RUN ["chmod", "+x", "/bin/pca"]
USER ${CISA_USER}
Expand Down
3 changes: 0 additions & 3 deletions tests/container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,10 @@ def test_log_version(version_container):
"""Verify the container outputs the correct version to the logs."""
version_container.wait() # make sure container exited if running test isolated
log_output = version_container.logs().decode("utf-8").strip()
print("log output:", log_output)

pkg_vars = {}
with open(VERSION_FILE) as f:
exec(f.read(), pkg_vars) # nosec
project_version = pkg_vars["__version__"]
print("project version: ", project_version)
assert (
log_output == project_version
), f"Container version output to log does not match project version file {VERSION_FILE}"
Expand Down

0 comments on commit 1b10c04

Please # to comment.