-
Notifications
You must be signed in to change notification settings - Fork 52
/
Dockerfile.github-ci
48 lines (37 loc) · 1.52 KB
/
Dockerfile.github-ci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ptrxyz/chemotion:eln-1.9.3
ARG BRANCH=main
RUN apt-get install -y --no-install-recommends --autoremove --fix-missing \
build-essential\
openssh-server\
libmagickwand-dev \
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \
openssl libtool libssl-dev libyaml-dev \
swig \
jq
WORKDIR "/chemotion/app"
# avoid caching if newer commits are present
ADD "https://api.github.com/repos/ComPlat/chemotion_ELN/commits/${BRANCH}?per_page=1" latest_commit.json
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/Gemfile
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/Gemfile.lock
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/package.json
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/yarn.lock
RUN curl -LJO https://raw.githubusercontent.com/ComPlat/chemotion_ELN/${BRANCH}/.tool-versions
# ARG SRCDIR=./
# COPY ${SRCDIR}Gemfile .
# COPY ${SRCDIR}Gemfile.lock .
# COPY ${SRCDIR}package.json .
# COPY ${SRCDIR}yarn.lock .
# COPY ${SRCDIR}.tool-versions .
RUN rm -rf node_modules/*
RUN rm -rf tmp/cache
# check asdf and asdf plugin installations
RUN ./prepare-asdf.sh
# installed latest nodejs version as allowed by package.json
RUN ./prepare-nodejs.sh
RUN ./prepare-nodejspkg.sh
RUN ./prepare-rubygems.sh
# install other versions
RUN asdf install ruby 3.3.0
# RUN asdf global ruby 3.3.0
# RUN asdf local ruby 3.3.0
# RUN ./prepare-rubygems.sh