Skip to content

Commit

Permalink
bump tavern version
Browse files Browse the repository at this point in the history
Signed-off-by: kevin <kk@sudo-i.net>
  • Loading branch information
chifu1234 committed Jan 14, 2021
1 parent 794c24d commit d8d2480
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ ENV SCRIPT_DIRECTORY "/scripts"

### Paths
ENV PATH "~/.local/bin:${PATH}"
ENV PYTHONPATH "$SCRIPT_DIRECTORY"

### Base Configuration
ENV TAVERN_VERSION "1.11.1"
ENV TAVERN_VERSION "1.12.2"
ENV TAVERN_USER_ID 1500
ENV TAVERN_GROUP_ID 1500
ENV SET_PERMISSIONS "true"

## Create Tavern User
RUN addgroup -g "${TAVERN_GROUP_ID}" tavern && adduser -s /bin/false -u ${TAVERN_USER_ID} -D -G tavern tavern \
Expand All @@ -29,13 +27,14 @@ RUN addgroup -g "${TAVERN_GROUP_ID}" tavern && adduser -s /bin/false -u ${TAVERN

## Install Tavern
USER tavern
RUN pip install --user tavern==${TAVERN_VERSION}
RUN pip install --force-reinstall --user tavern==${TAVERN_VERSION}

## Copy Entrypoint
COPY ./entrypoint.sh /

## Working Directory
WORKDIR "${TEST_DIRECTORY}"

VOLUME ["/tavern"]
## EntryPoint
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 2 additions & 0 deletions entrypoint.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

export PYTHONPATH="${SCRIPT_DIRECTORY}"

## Execute Command, Defaults to Tavern
if [[ -n "$@" ]]; then
exec "$@"
Expand Down

0 comments on commit d8d2480

Please sign in to comment.