Current code

This commit is contained in:
root
2022-08-08 11:04:40 +02:00
parent a586d3f63d
commit 68a2b0f767
3 changed files with 66 additions and 1 deletions

32
Dockerfile Normal file
View File

@@ -0,0 +1,32 @@
FROM jenkins/inbound-agent:latest
USER root
RUN apt-get update --yes && \
apt-get upgrade --yes && \
apt-get install --yes --no-install-recommends \
bzip2 \
libcurl4-openssl-dev \
libssl-dev \
build-essential \
libxml2-dev \
r-base \
r-base-dev \
libopenblas-base \
texlive-base \
texlive-xetex \
texinfo \
curl \
texlive-fonts-recommended \
pandoc \
wget && \
apt-get clean && rm -rf /var/lib/apt/lists/*
ADD Rprofile.site /usr/lib/R/etc
USER jenkins
RUN tlmgr init-usertree && \
tlmgr option repository ftp://tug.org/historic/systems/texlive/2020/tlnet-final

View File

@@ -1,3 +1,30 @@
# mybuildagent # mybuildagent
My Docker Container for Jenkins Agents My Docker Container for Jenkins Agents
This is the compose file I use.
``` docker-compose
version: '3'
services:
jenkins:
image: jenkins/jenkins:lts
restart: always
volumes:
- /dockerdata/jenkins:/var/jenkins_home
ports:
- 127.0.0.1:9999:port
- 127.0.0.1:53805:port
jenkins-agent:
build: mybuildagent
volumes:
- /dockerdata/jenkins_agent:/home/jenkins/agent
restart: always
environment:
- JENKINS_URL=http://jenkins:firstport
- JENKINS_SECRET=secret
- JENKINS_AGENT_NAME=Agentname
- JENKINS_AGENT_WORKDIR=/home/jenkins/agent
```

6
Rprofile.site Normal file
View File

@@ -0,0 +1,6 @@
#set a CRAN mirror
local({r <- getOption("repos")
r["CRAN"] <- "https://cloud.r-project.org/"
options(repos=r)
options(Ncpus=8)
})