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

Subscribers

People subscribed via source and target branches