Skip to content
Snippets Groups Projects
Commit 90f8a5ad authored by Adrien Béraud's avatar Adrien Béraud
Browse files

Jenkins: use Docker

Change-Id: Id7acbd8e217fc55668c8d1943f0464308fce62bc
parent 1299a0d3
Branches
No related tags found
No related merge requests found
FROM ghcr.io/savoirfairelinux/opendht/opendht-alpine:latest FROM ghcr.io/savoirfairelinux/opendht/opendht-alpine:latest as build
RUN apk add --no-cache \ RUN apk add --no-cache \
build-base cmake ninja git wget \ build-base cmake ninja git wget \
...@@ -19,9 +19,9 @@ RUN mkdir restinio && cd restinio \ ...@@ -19,9 +19,9 @@ RUN mkdir restinio && cd restinio \
&& cd ../../.. && rm -rf restinio && cd ../../.. && rm -rf restinio
# Build pjproject # Build pjproject
RUN wget https://github.com/savoirfairelinux/pjproject/archive/e4b83585a0bdf1523e808a4fc1946ec82ac733d0.tar.gz \ RUN wget https://github.com/savoirfairelinux/pjproject/archive/97f45c2040c2b0cf6f3349a365b0e900a2267333.tar.gz \
&& tar -xzf e4b83585a0bdf1523e808a4fc1946ec82ac733d0.tar.gz \ && tar -xzf 97f45c2040c2b0cf6f3349a365b0e900a2267333.tar.gz \
&& mv pjproject-e4b83585a0bdf1523e808a4fc1946ec82ac733d0 pjproject \ && mv pjproject-97f45c2040c2b0cf6f3349a365b0e900a2267333 pjproject \
&& cd pjproject \ && cd pjproject \
&& EXCLUDE_APP=1 ./aconfigure --prefix=/usr --disable-sound \ && EXCLUDE_APP=1 ./aconfigure --prefix=/usr --disable-sound \
--enable-video \ --enable-video \
...@@ -50,7 +50,6 @@ COPY . dhtnet ...@@ -50,7 +50,6 @@ COPY . dhtnet
RUN mkdir /install RUN mkdir /install
ENV DESTDIR /install ENV DESTDIR /install
#RUN cd dhtnet && mkdir build_dev && cd build_dev \ RUN cd dhtnet && mkdir build_dev && cd build_dev \
# && cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ && cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=On \ && make -j2 && make install
# && make -j8 && make install
...@@ -4,7 +4,10 @@ pipeline { ...@@ -4,7 +4,10 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'mkdir build && cd build && cmake .. && make' script {
docker.build("dhtnet:${env.BUILD_ID}", "--target build .")
sh "docker run -t --rm dhtnet:${env.BUILD_ID}"
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment