Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Move binary location to /usr/local/bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
meeDamian committed Jan 19, 2020
1 parent c788d2e commit b3779f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
run: |
mkdir -p binary/
ID=$(docker create "${APP}:${{matrix.arch}}")
docker cp "${ID}:/bin/${APP}" binary/
docker cp "${ID}:/usr/local/bin/${APP}" binary/
docker rm "${ID}"
gzip -S "-${TAG}-${{matrix.arch}}.gz" binary/${APP}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: |
mkdir -p binary/
ID=$(docker create "${APP}:${{matrix.arch}}")
docker cp "${ID}:/bin/${APP}" binary/
docker cp "${ID}:/usr/local/bin/${APP}" binary/
docker rm "${ID}"
gzip -S "-${{matrix.arch}}.gz" binary/${APP}
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
docker run --rm --entrypoint=uname "${APP}:${tag}" -a
docker run --rm --entrypoint=cat "${APP}:${tag}" /etc/os-release
docker run --rm --entrypoint=sha256sum "${APP}:${tag}" /bin/${APP}
docker run --rm --entrypoint=sha256sum "${APP}:${tag}" /usr/local/bin/${APP}
docker run --rm --entrypoint=sh -u=root "${APP}:${tag}" -c "apk add --no-cache file && file /bin/${APP}"
docker run --rm --entrypoint=sh -u=root "${APP}:${tag}" -c "apk add --no-cache file && file /usr/local/bin/${APP}"
done
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# If the binaries are the same, one is compressed, and copied to the `final` stage.

# invoicer version to be build
ARG VERSION=v0.7.7
ARG VERSION=v0.8.0

# Target CPU archtecture of built Invoicer binary
ARG ARCH
Expand Down Expand Up @@ -204,17 +204,16 @@ COPY --from=perms /etc/passwd /etc/
COPY --from=perms /etc/shadow /etc/

# Copy the binary from the cross-check stage
COPY --from=cross-check /bin/invoicer /bin/
COPY --from=cross-check /bin/invoicer /usr/local/bin/

USER ${USER}

# Expose the volume to communicate config, log, etc through (default: /data/)
VOLUME ${DIR}

# Expose port Invoicer listens on
EXPOSE 8080

USER ${USER}
WORKDIR ${DIR}

# Specify the start command and entrypoint as the invoicer daemon.
ENTRYPOINT ["invoicer"]

Expand Down

0 comments on commit b3779f8

Please sign in to comment.