-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.ubuntu-22.04
58 lines (45 loc) · 1.88 KB
/
Dockerfile.ubuntu-22.04
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:22.04
MAINTAINER 2maz "https://github.com/2maz"
# Optional arguments
ARG PKG_BRANCH="master"
ENV PKG_BRANCH=${PKG_BRANCH}
ARG PKG_PULL_REQUEST="false"
ENV PKG_PULL_REQUEST=${PKG_PULL_REQUEST}
ARG PKG_PULL_REQUEST_BRANCH=""
ENV PKG_PULL_REQUEST_BRANCH=${PKG_PULL_REQUEST_BRANCH}
## END ARGUMENTS
RUN apt update
RUN apt upgrade -y
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install -y ruby ruby-dev git locales tzdata vim wget gem2deb reprepro apache2 cmake automake pbuilder cowdancer curl
RUN apt-file update
RUN service apache2 start
RUN echo "Europe/Berlin" > /etc/timezone; dpkg-reconfigure -f noninteractive tzdata
RUN export LANGUAGE=de_DE.UTF-8; export LANG=de_DE.UTF-8; export LC_ALL=de_DE.UTF-8; locale-gen de_DE.UTF-8; DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
RUN useradd -ms /bin/bash docker
RUN echo "docker ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER docker
WORKDIR /home/docker
COPY --chown=docker . apaka
ENV LANG de_DE.UTF-8
ENV LANG de_DE:de
ENV LC_ALL de_DE.UTF-8
ENV GEM_HOME=/home/docker/.gems/ruby/3.0.0
ENV PATH=$GEM_HOME/bin:$PATH
#RUN git clone https://github.com/rock-core/tools-apaka /home/docker/apaka
#COPY --chown=docker .ci/prepare-package.sh prepare-package.sh
#RUN /bin/bash prepare-package.sh /home/docker/apaka
RUN sed -i 's#gems_install_path.*#gems_install_path: /home/docker/.gems#' /home/docker/apaka/test/workspace/.autoproj/config.yml
RUN git config --global user.name 'Apaka4docker'
RUN git config --global user.email 'apaka@docker'
#RUN git clone https://github.com/rock-core/autobuild
#RUN git clone https://github.com/rock-core/autoproj
#RUN cd /home/docker/autobuild; gem build autobuild.gemspec
#RUN cd /home/docker/autoproj; gem build autoproj.gemspec
RUN gem install backports
RUN gem install autoproj
RUN gem install bundler:2.4.19
RUN gem install yard
RUN gem install minitest:5.15.0
RUN gem install flexmock
RUN gem install pry-byebug