-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDockerfile
41 lines (33 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:22.04
WORKDIR /root
ADD install-pdk-release.sh .
ADD install-bolt-release.sh .
ADD install-onceover.sh .
ADD pdk-release.env .
ADD bolt-release.env .
COPY entrypoint.sh /.entrypoint.sh
RUN passwd -d root && \
mkdir /cache && \
chmod a+rwx /cache
RUN apt-get update && \
apt-get install -y curl openssh-client && \
./install-pdk-release.sh && \
./install-bolt-release.sh && \
./install-onceover.sh && \
# Add tools to build Gem native extensions that can be required to run pdk unit tests:
apt-get install --yes build-essential && \
apt-get purge -y curl && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
mkdir /workspace
# Prep a module to make sure we have all of
# the required dependencies.
RUN pdk new module docker --skip-interview && \
cd docker && \
pdk new class test && \
pdk validate
ENV PATH="${PATH}:/opt/puppetlabs/pdk/private/git/bin"
ENV PDK_DISABLE_ANALYTICS=true
ENV LANG=C.UTF-8
WORKDIR /workspace
ENTRYPOINT ["/.entrypoint.sh"]