@@ -2,48 +2,27 @@ ARG PRIVATE_REGISTRY=ci.ru.aegean.gr:5000
2
2
FROM ${PRIVATE_REGISTRY}/base20:ruby
3
3
4
4
RUN apt-get -y update && apt-get -y install mariadb-server mariadb-client libmysqlclient-dev postgresql postgresql-contrib
5
- # RUN apt-get -y purge google-chrome-stable \
6
- # && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
7
- # && dpkg -i google-chrome*.deb \
8
- # && sed -i -e 's@exec -a "$0" "$HERE/chrome" "$\@"@exec -a "$0" "$HERE/chrome" "$\@" --no-sandbox --user-data-dir $HOME/chrome-dir@g' /opt/google/chrome/google-chrome
9
5
10
- # chrome driver
11
- # https://stackoverflow.com/questions/50692358/how-to-work-with-a-specific-version-of-chromedriver-while-chrome-browser-gets-up
12
6
ARG RUBY_VERSION_TO_INSTALL1=2.7.8
13
7
RUN rbenv install ${RUBY_VERSION_TO_INSTALL1} && rbenv global ${RUBY_VERSION_TO_INSTALL1} \
14
8
&& rbenv rehash && gem install bundler
15
9
16
- # ARG RUBY_VERSION_TO_INSTALL2=3.0.6
17
- # RUN rbenv install ${RUBY_VERSION_TO_INSTALL2} && rbenv global ${RUBY_VERSION_TO_INSTALL2} \
18
- # && rbenv rehash && gem install bundler
19
- #
20
- # ARG RUBY_VERSION_TO_INSTALL3=3.1.4
21
- # RUN rbenv install ${RUBY_VERSION_TO_INSTALL3} && rbenv global ${RUBY_VERSION_TO_INSTALL3} \
22
- # && rbenv rehash && gem install bundler
23
- #
24
- # ARG RUBY_VERSION_TO_INSTALL4=3.2.2
25
- # RUN rbenv install ${RUBY_VERSION_TO_INSTALL4} && rbenv global ${RUBY_VERSION_TO_INSTALL4} \
26
- # && rbenv rehash && gem install bundler
10
+ ARG RUBY_VERSION_TO_INSTALL2=3.0.6
11
+ RUN rbenv install ${RUBY_VERSION_TO_INSTALL2} && rbenv global ${RUBY_VERSION_TO_INSTALL2} \
12
+ && rbenv rehash && gem install bundler
13
+
14
+ ARG RUBY_VERSION_TO_INSTALL3=3.1.4
15
+ RUN rbenv install ${RUBY_VERSION_TO_INSTALL3} && rbenv global ${RUBY_VERSION_TO_INSTALL3} \
16
+ && rbenv rehash && gem install bundler
17
+
18
+ ARG RUBY_VERSION_TO_INSTALL4=3.2.2
19
+ RUN rbenv install ${RUBY_VERSION_TO_INSTALL4} && rbenv global ${RUBY_VERSION_TO_INSTALL4} \
20
+ && rbenv rehash && gem install bundler
27
21
28
22
ENV PGUSER=postgres
29
23
ENV PGPORT=5432
30
24
ENV PGHOST=localhost
31
25
32
26
RUN sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\| md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
33
27
34
- RUN git config --global --add safe.directory /root/hyperstack
35
-
36
- # # RUN apt-get purge google-chrome-stable
37
- # RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
38
- # RUN dpkg -i google-chrome*.deb
39
-
40
- # RUN apt-get install -y chromium-chromedriver \
41
- # # && ln -s /usr/lib/chromium-browser/chromium-browser /usr/bin/google-chrome \
42
- # && ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver
43
- # pg_ctlcluster 12 main start
44
- # RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
45
- # RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
46
- # RUN rm google-chrome-stable_current_amd64.deb
47
-
48
- # && \
49
- # gem install rubygems-update && gem update --system && gem update && rbenv rehash
28
+ RUN git config --global --add safe.directory /root/hyperstack
0 commit comments