forked from irasnyd/puppet-parser-validate-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (19 loc) · 1.12 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
FROM ubuntu:22.04
LABEL name="puppet-parser-validate-action"
LABEL repository="https://github.com/hbenali/puppet-parser-validate-action"
LABEL homepage="https://github.com/hbenali/puppet-parser-validate-action"
LABEL "com.github.actions.name"="puppet-parser-validate-action"
LABEL "com.github.actions.description"="GitHub Action to run 'puppet parser validate' syntax check"
LABEL "com.github.actions.icon"="share-2"
LABEL "com.github.actions.color"="orange"
LABEL "maintainer"="Houssem B. Ali <https://github.com/hbenali/>"
RUN apt-get update
RUN apt-get install -y curl gnupg
RUN curl -fsSL https://apt.puppetlabs.com/keyring.gpg | gpg --batch --yes --dearmor -o /usr/share/keyrings/puppet-keyring.gpg && \
echo "# Sources for recent versions of puppet" > /etc/apt/sources.list.d/puppetlab.list && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/puppet-keyring.gpg] http://apt.puppetlabs.com jammy puppet7" >> /etc/apt/sources.list.d/puppetlab.list
RUN apt-get update
RUN apt-get install -y puppet-agent
COPY entrypoint.sh /entrypoint.sh
RUN ["chmod", "+x", "/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]