Skip to content

Instantly share code, notes, and snippets.

@staktrace
Created April 4, 2019 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staktrace/d106bdf6de42a11cf5b35476287f9d5b to your computer and use it in GitHub Desktop.
Save staktrace/d106bdf6de42a11cf5b35476287f9d5b to your computer and use it in GitHub Desktop.
kats@kgupta-mbp socorro$ make build
/usr/local/bin/docker-compose build --build-arg userid=10001 --build-arg groupid=10001 app
Building app
Step 1/39 : FROM python:3.6.8-slim-stretch as socorro_image_base
---> 5d4dd7f71a65
Step 2/39 : ARG groupid=10001
---> Using cache
---> 31f4f3342290
Step 3/39 : ARG userid=10001
---> Using cache
---> 6942b6a2bb0e
Step 4/39 : WORKDIR /app/
---> Using cache
---> b43e4830bbcb
Step 5/39 : RUN groupadd --gid $groupid app && useradd -g app --uid $userid --shell /usr/sbin/nologin --create-home app
---> Using cache
---> 8811d5ba6971
Step 6/39 : COPY ./docker/set_up_ubuntu.sh /tmp/
---> Using cache
---> dbcf31a5176f
Step 7/39 : RUN DEBIAN_FRONTEND=noninteractive /tmp/set_up_ubuntu.sh
---> Using cache
---> 3d5ffce1bc74
Step 8/39 : FROM socorro_image_base as socorro_breakpad
---> 3d5ffce1bc74
Step 9/39 : WORKDIR /mdsw/
---> Using cache
---> 30afa1ed1888
Step 10/39 : COPY ./scripts/build-breakpad.sh /mdsw/scripts/
---> Using cache
---> 390511ae4833
Step 11/39 : COPY ./scripts/build-stackwalker.sh /mdsw/scripts/
---> Using cache
---> b4ca11fcd27b
Step 12/39 : COPY ./minidump-stackwalk/ /mdsw/minidump-stackwalk/
---> Using cache
---> 7dcfe89b5961
Step 13/39 : RUN STACKWALKDIR=/stackwalk SRCDIR=/mdsw /mdsw/scripts/build-stackwalker.sh
---> Using cache
---> 39e1bf2bb3fc
Step 14/39 : FROM socorro_image_base
---> 3d5ffce1bc74
Step 15/39 : WORKDIR /app/
---> Using cache
---> e03ec8ade8ef
Step 16/39 : COPY --from=socorro_breakpad /stackwalk/* /stackwalk/
---> Using cache
---> e33f822b0d56
Step 17/39 : COPY ./webapp-django/package.json /webapp-frontend-deps/package.json
---> Using cache
---> b66334b7af8b
Step 18/39 : COPY ./webapp-django/package-lock.json /webapp-frontend-deps/package-lock.json
---> Using cache
---> e789b1e260f6
Step 19/39 : RUN cd /webapp-frontend-deps/ && npm install
---> Using cache
---> d7b029242ec1
Step 20/39 : COPY ./crontabber/package.json /crontabber-deps/package.json
---> Using cache
---> 0fcfe32de399
Step 21/39 : COPY ./crontabber/package-lock.json /crontabber-deps/package-lock.json
---> Using cache
---> 2b0e42eb0c77
Step 22/39 : RUN cd /crontabber-deps/ && npm install
---> Using cache
---> a46b2e272d5c
Step 23/39 : COPY ./requirements /app/requirements
---> Using cache
---> d87edfd5499f
Step 24/39 : RUN pip install -U 'pip>=8' && pip install --no-cache-dir -r requirements/default.txt -c requirements/constraints.txt
---> Using cache
---> 1a3712c18e73
Step 25/39 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> b931037caa0e
Step 26/39 : ENV PYTHONDONTWRITEBYTECODE 1
---> Using cache
---> 51499dabeb59
Step 27/39 : ENV PYTHONPATH /app
---> Using cache
---> 1225ac30479b
Step 28/39 : ENV LESS_BINARY /webapp-frontend-deps/node_modules/.bin/lessc
---> Using cache
---> f66c1c062b88
Step 29/39 : ENV UGLIFYJS_BINARY /webapp-frontend-deps/node_modules/.bin/uglifyjs
---> Using cache
---> a07e54b4ed43
Step 30/39 : ENV CSSMIN_BINARY /webapp-frontend-deps/node_modules/.bin/cssmin
---> Using cache
---> f6351b10484e
Step 31/39 : ENV NPM_ROOT_PATH /webapp-frontend-deps/
---> Using cache
---> 7f1ec90df9dc
Step 32/39 : ENV NODE_PATH /webapp-frontend-deps/node_modules/
---> Using cache
---> f0d83a719020
Step 33/39 : COPY . /app/
---> a1790b60704a
Step 34/39 : RUN cd /app/webapp-django/ && python manage.py collectstatic --noinput
---> Running in 6d1ab1ec5241
348 static files copied to '/app/webapp-django/static', 522 post-processed.
Removing intermediate container 6d1ab1ec5241
---> 5991c4dbcbbb
Step 35/39 : RUN chown -R app.app /app
---> Running in 00667075c0d4
Removing intermediate container 00667075c0d4
---> 2cf9a459a7b4
Step 36/39 : USER app
---> Running in b6c470f2bbb5
Removing intermediate container b6c470f2bbb5
---> 2446664d576c
Step 37/39 : RUN mkdir -p /tmp/symbols/cache
---> Running in 8878a807fc75
Removing intermediate container 8878a807fc75
---> 39c42a4e580c
Step 38/39 : RUN mkdir -p /tmp/symbols/tmp
---> Running in 15853b373fec
Removing intermediate container 15853b373fec
---> f363f0240738
Step 39/39 : ENTRYPOINT ["/app/docker/socorro_entrypoint.sh"]
---> Running in e215f9280caf
Removing intermediate container e215f9280caf
---> e7c717451c7e
Successfully built e7c717451c7e
Successfully tagged local/socorro_app:latest
/usr/local/bin/docker-compose build oidcprovider
Building oidcprovider
Step 1/2 : FROM mozillaparsys/oidc_testprovider
---> bcbf53fca268
Step 2/2 : COPY ./docker/config/oidcprovider-fixtures.json /code/fixtures.json
---> Using cache
---> ce8889020921
Successfully built ce8889020921
Successfully tagged local/socorro_oidcprovider:latest
touch .docker-build
kats@kgupta-mbp socorro$ make setup
/usr/local/bin/docker-compose run --rm app shell bash -c /app/docker/run_setup.sh
Could not connect to postgres://postgres:aPassword@postgresql:5432/breakpad
make: *** [setup] Error 1
kats@kgupta-mbp socorro$ docker-compose ps
Name Command State Ports
------------------------------
kats@kgupta-mbp socorro$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment