Merge ~athos-ribeiro/ubuntu-docker-images/+git/utils:dockerfile into ~ubuntu-docker-images/ubuntu-docker-images/+git/utils:main

Proposed by Athos Ribeiro
Status: Merged
Merged at revision: af735248fd81c8aacdb295f18bd439877ee941d2
Proposed branch: ~athos-ribeiro/ubuntu-docker-images/+git/utils:dockerfile
Merge into: ~ubuntu-docker-images/ubuntu-docker-images/+git/utils:main
Diff against target: 39 lines (+33/-0)
1 file modified
Dockerfile (+33/-0)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior Approve
Canonical Server Pending
Review via email: mp+414403@code.launchpad.net

Description of the change

This is a Dockerfile I have been using to build the tagger image to run the tagger script.

I believe this could be useful to newcomers so they can easily setup their environment in the future.

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Cool. Thanks, man. The indentation looks a bit off in some parts of the file, but since this is supposed to be a helper tool I believe we don't need to uphold the same standards used in our products :-).

LGTM, +1.

review: Approve
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks Sergio!

That was a stubborn \t which was most likely copied from somewhere else when I first wrote this Dockerfile. I fixed the indention and merged it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/Dockerfile b/Dockerfile
2new file mode 100644
3index 0000000..a28196d
4--- /dev/null
5+++ b/Dockerfile
6@@ -0,0 +1,33 @@
7+# Dockerfile for building an image ready to run the tagger script
8+# Build the image and run the tagger with
9+# docker build -t localhost/tagger:latest .
10+# docker run -it --rm \
11+# -v ${PATH_TO_AWS_CONFIG}:/root/.aws/config:ro \
12+# -v ${PATH_TO_AWS_CREDENTIALS}:/root/.aws/credentials:ro \
13+# localhost/tagger:latest ARGS_TO_tag-images.sh
14+FROM ubuntu:latest as build
15+ENV TZ=UTC
16+RUN apt-get update
17+RUN DEBIAN_FRONTEND=noninteractive apt-get full-upgrade -y
18+RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
19+ locales \
20+ tzdata \
21+ distro-info \
22+ curl \
23+ ca-certificates \
24+ unzip \
25+ jq \
26+ docker.io
27+ADD https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip awscliv2.zip
28+RUN unzip awscliv2.zip
29+RUN ./aws/install
30+RUN rm -rf ./aws awscliv2.zip
31+COPY . /src
32+RUN mkdir -p /root/.aws
33+RUN DEBIAN_FRONTEND=noninteractive apt-get remove --purge --auto-remove -y
34+RUN rm -rf /var/lib/apt/lists/*
35+FROM scratch
36+COPY --from=build / /
37+WORKDIR /src
38+ENTRYPOINT ["./tag-images.sh"]
39+CMD ["-h"]

Subscribers

People subscribed via source and target branches