Skip to content

Commit

Permalink
We need to create our unpriviliged testuser before we add all of our …
Browse files Browse the repository at this point in the history
…test tools.
  • Loading branch information
greg-1-anderson committed Feb 6, 2019
1 parent 69ec4dd commit fed4bad
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ RUN apt-get install -y ruby jq
RUN gem install circle-cli
RUN composer -n global require -n "hirak/prestissimo:^0.3"

# Create an unpriviliged testuser
RUN groupadd -g 999 tester && \
useradd -r -m -u 999 -g tester tester && \
chown -R tester /usr/local && \
chown -R tester /build-tools-ci
USER tester

RUN mkdir -p /usr/local/share/terminus
RUN /usr/bin/env COMPOSER_BIN_DIR=/usr/local/bin composer -n --working-dir=/usr/local/share/terminus require pantheon-systems/terminus:"^1.9"
RUN mkdir -p /usr/local/share/drush
Expand Down Expand Up @@ -83,16 +90,4 @@ RUN mkdir ~/behat && \
"behat/mink-goutte-driver:^1.2" \
"drupal/drupal-extension:*"

###########################
# Finalize headless Chrome
# Borrowed from https://github.com/GoogleChrome/puppeteer/docs/troubleshooting.md#running-puppeteer-in-docker
###########################

# Create an unpriviliged testuser
RUN groupadd -g 999 tester && \
useradd -r -m -u 999 -g tester tester && \
chown -R tester /usr/local && \
chown -R tester /build-tools-ci
USER tester

ENTRYPOINT ["dumb-init", "--"]

0 comments on commit fed4bad

Please sign in to comment.