Updates for docker build using artifacts

This commit is contained in:
Sivakumar Yavvari 2021-12-17 16:11:45 +00:00
parent de2a89ebce
commit e0e5100a1d
2 changed files with 4 additions and 47 deletions

View file

@ -39,6 +39,7 @@ dockerize:
script: script:
- docker build -t $IMAGE . - docker build -t $IMAGE .
- docker push $IMAGE - docker push $IMAGE
needs: ['build']
tags: tags:
- builder - builder
when: manual when: manual

View file

@ -8,17 +8,6 @@ MAINTAINER PeerPlays Blockchain Standards Association
RUN \ RUN \
apt-get update -y && \ apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \ DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-utils \
autoconf \
bash \
build-essential \
ca-certificates \
cmake \
dnsutils \
doxygen \
expect \
git \
graphviz \
libboost1.67-all-dev \ libboost1.67-all-dev \
libbz2-dev \ libbz2-dev \
libcurl4-openssl-dev \ libcurl4-openssl-dev \
@ -29,16 +18,7 @@ RUN \
libtool \ libtool \
libzip-dev \ libzip-dev \
libzmq3-dev \ libzmq3-dev \
locales \
mc \
nano \
net-tools \
ntp \
openssh-server \ openssh-server \
pkg-config \
perl \
python3 \
python3-jinja2 \
sudo \ sudo \
wget wget
@ -57,38 +37,14 @@ EXPOSE 22
# Peerplays setup # Peerplays setup
#=============================================================================== #===============================================================================
WORKDIR /home/peerplays/ ADD build/ /home/peerplays/build
## Clone Peerplays
#RUN \
# git clone https://gitlab.com/PBSA/peerplays.git && \
# cd peerplays && \
# git checkout develop && \
# git submodule update --init --recursive && \
# git branch --show-current && \
# git log --oneline -n 5
# Add local source
ADD . peerplays
# Configure Peerplays
RUN \
cd peerplays && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release ..
# Build Peerplays
RUN \
cd peerplays/build && \
make -j$(nproc) cli_wallet witness_node
WORKDIR /home/peerplays/peerplays-network WORKDIR /home/peerplays/peerplays-network
# Setup Peerplays runimage # Setup Peerplays runimage
RUN \ RUN \
ln -s /home/peerplays/peerplays/build/programs/cli_wallet/cli_wallet ./ && \ ln -s /home/peerplays/build/programs/cli_wallet/cli_wallet ./ && \
ln -s /home/peerplays/peerplays/build/programs/witness_node/witness_node ./ ln -s /home/peerplays/build/programs/witness_node/witness_node ./
RUN ./witness_node --create-genesis-json genesis.json && \ RUN ./witness_node --create-genesis-json genesis.json && \
rm genesis.json rm genesis.json