Skip to content

Commit 4e90333

Browse files
committed
setup gocd pipeline
1 parent 13f47cf commit 4e90333

File tree

2 files changed

+39
-33
lines changed

2 files changed

+39
-33
lines changed

Dockerfile

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,27 @@ ARG PRIVATE_REGISTRY=ci.ru.aegean.gr:5000
22
FROM ${PRIVATE_REGISTRY}/base20:ruby
33

44
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
95

10-
#chrome driver
11-
#https://stackoverflow.com/questions/50692358/how-to-work-with-a-specific-version-of-chromedriver-while-chrome-browser-gets-up
126
ARG RUBY_VERSION_TO_INSTALL1=2.7.8
137
RUN rbenv install ${RUBY_VERSION_TO_INSTALL1} && rbenv global ${RUBY_VERSION_TO_INSTALL1} \
148
&& rbenv rehash && gem install bundler
159

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
2721

2822
ENV PGUSER=postgres
2923
ENV PGPORT=5432
3024
ENV PGHOST=localhost
3125

3226
RUN sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
3327

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

hyperstack.gocd.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,34 @@ environments:
33
test:
44
pipelines:
55
- hyperstack
6+
- hyperstack-build
67
pipelines:
8+
hyperstack-build:
9+
group: hyperstack
10+
label_template: ${COUNT}
11+
lock_behavior: none
12+
display_order: -1
13+
materials:
14+
hyperstack:
15+
git: https://github.com/mpantel/hyperstack.git
16+
shallow_clone: false
17+
auto_update: false
18+
branch: edge
19+
stages:
20+
- build:
21+
fetch_materials: true
22+
keep_artifacts: false
23+
clean_workspace: false
24+
approval:
25+
type: success
26+
allow_only_on_success: false
27+
jobs:
28+
cleanup:
29+
timeout: 0
30+
tasks:
31+
- exec:
32+
command: ./create-docker-image
33+
run_if: passed
734
hyperstack:
835
group: hyperstack
936
label_template: ${COUNT}

0 commit comments

Comments
 (0)