Skip to content

Commit 9602987

Browse files
committed
Add Debian 13
1 parent e47cce7 commit 9602987

2 files changed

Lines changed: 58 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
os: ['rocky-8', 'rocky-9', 'debian-11', 'debian-12', 'fedora', 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04']
15+
os: ['rocky-8', 'rocky-9', 'debian-11', 'debian-12', 'debian-13', 'fedora', 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04']
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4

docker/debian-13/Dockerfile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# TODO: update to debian:13 once released
2+
FROM debian:testing
3+
4+
ARG BRANCH=master
5+
ARG RSTUDIO=2024.12.0-467
6+
7+
RUN \
8+
apt-get update && \
9+
apt-get -y dist-upgrade && \
10+
apt-get install -y wget make devscripts apache2-dev apache2 libapreq2-dev r-base r-base-dev libapparmor-dev libfontconfig-dev libcurl4-openssl-dev libprotobuf-dev protobuf-compiler libcairo2-dev xvfb xauth xfonts-base curl libssl-dev libxml2-dev libicu-dev pkg-config libssh2-1-dev locales apt-utils cmake && \
11+
useradd -ms /bin/bash builder
12+
13+
# Note: this is different from Ubuntu (c.f. 'language-pack-en-base')
14+
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
15+
16+
USER builder
17+
18+
RUN \
19+
cd ~ && \
20+
wget --quiet https://github.com/opencpu/opencpu-server/archive/${BRANCH}.tar.gz && \
21+
tar xzf ${BRANCH}.tar.gz && rm ${BRANCH}.tar.gz && \
22+
cd opencpu-server-* && \
23+
sed -i 's/focal/bullseye/g' debian/changelog && \
24+
dpkg-buildpackage -us -uc
25+
26+
USER root
27+
28+
RUN \
29+
apt-get install -y libapache2-mod-r-base cron && \
30+
dpkg -i /home/builder/opencpu-lib_*.deb && \
31+
dpkg -i /home/builder/opencpu-server_*.deb
32+
33+
RUN \
34+
apt-get install -y git sudo && \
35+
wget --quiet https://download2.rstudio.org/server/jammy/amd64/rstudio-server-${RSTUDIO}-amd64.deb && \
36+
apt install --reinstall -y -o=Dpkg::Use-Pty=0 -o=Apt::Cmd::Disable-Script-Warning=1 ./rstudio-server-${RSTUDIO}-amd64.deb && \
37+
rm -f rstudio-server-${RSTUDIO}-amd64.deb && \
38+
echo "server-app-armor-enabled=0" >> /etc/rstudio/rserver.conf
39+
40+
# Prints apache logs to stdout
41+
RUN \
42+
ln -sf /proc/self/fd/1 /var/log/apache2/access.log && \
43+
ln -sf /proc/self/fd/1 /var/log/apache2/error.log && \
44+
ln -sf /proc/self/fd/1 /var/log/opencpu/apache_access.log && \
45+
ln -sf /proc/self/fd/1 /var/log/opencpu/apache_error.log
46+
47+
# Set opencpu password so that we can login
48+
RUN \
49+
echo "opencpu:opencpu" | chpasswd
50+
51+
# Apache ports
52+
EXPOSE 80
53+
EXPOSE 443
54+
EXPOSE 8004
55+
56+
# Start non-daemonized webserver
57+
CMD service cron start && /usr/lib/rstudio-server/bin/rserver && apachectl -DFOREGROUND

0 commit comments

Comments
 (0)