Skip to content

Commit

Permalink
dockerfile and jenkinsfile (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Iqbal Ali authored May 7, 2020
1 parent 1cea61a commit 41b55e0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM alpine:3.11
LABEL authors="Stakater <hello@stakater.com>"

RUN apk --no-cache add --update bash sudo nano sudo zip bzip2 fontconfig wget curl 'su-exec>=0.2'

# Download and install runit
RUN buildDeps='tar make gcc musl-dev' \
RUNIT_VERSION="2.1.2" \
RUNIT_DOWNLOAD_URL="http://smarden.org/runit/runit-${RUNIT_VERSION}.tar.gz" \
RUNIT_DOWNLOAD_SHA1="398f7bf995acd58797c1d4a7bcd75cc1fc83aa66" \
&& set -x \
&& apk add --update $buildDeps \
&& curl -sSL "$RUNIT_DOWNLOAD_URL" -o runit.tar.gz \
&& echo "$RUNIT_DOWNLOAD_SHA1 *runit.tar.gz" | sha1sum -c - \
&& mkdir -p /usr/src/runit \
&& tar -xzf runit.tar.gz -C /usr/src/runit --strip-components=2 \
&& rm -f runit.tar.gz \
&& cd /usr/src/runit/src \
&& make \
&& cd .. \
&& cat package/commands | xargs -I {} mv -f src/{} /sbin/ \
&& cd / \
&& rm -rf /usr/src/runit \
&& apk del $buildDeps \
&& sudo mkdir -p /etc/service

RUN rm -rf /var/cache/apk/*

COPY /runsvinit /
ENTRYPOINT ["/runsvinit"]
6 changes: 6 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env groovy
@Library('github.com/stakater/stakater-pipeline-library@v2.16.27') _

pushDockerImage {
dockerRepositoryURL = "docker.io"
}
Binary file added runsvinit
Binary file not shown.

0 comments on commit 41b55e0

Please sign in to comment.