Commit 00b0b2b4 authored by Dave Cooper's avatar Dave Cooper
Browse files

adding conainerization to pipeline

parent c0d0df24
Pipeline #3514 canceled with stages
in 3 minutes and 45 seconds
......@@ -6,7 +6,7 @@ OS="$1"
task="$2"
status="$(curl -s "http://localhost:9000/build?command=build&os=$OS&branch=$CI_BUILD_REF_NAME&task=$2&ci-job-id=$CI_JOB_ID&ci-pipeline-id=$CI_PIPELINE_ID&gdl-current-version=1594")"
status="$(curl -s "http://localhost:9000/build?command=build&os=${OS}&branch=$CI_BUILD_REF_NAME&task=${task}&ci-job-id=$CI_JOB_ID&ci-pipeline-id=$CI_PIPELINE_ID&gdl-current-version=1594")"
#status="$(curl -s "http://ssh.genworks.com:9000/build?command=build&os=linux&branch=devo&cijobid=$CI_JOB_ID")"
echo "Testing status of curl command..."
......
......@@ -2,6 +2,7 @@
stages:
- update
- build
- containerize
# - inno
# - mint
# - test
......@@ -37,5 +38,8 @@ windows-build:
# script:
# - bash -x ./.ci-script.sh macos build-gendl
# containerize:
# stage: containerize
# script
# - bash -x ./build/build
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install openssl libssl-dev iputils-ping telnet git git-flow && \
rm -rf /var/cache/apk/* && apt-get clean && groupadd -g 1000 gendl-user && \
useradd -rm -s /bin/bash -u 1000 -g root -G sudo gendl-user && ln -s /home /Users
COPY --chown=gendl-user:gendl-user gendl-build/ /home/gendl-user/gendl/
COPY --chown=gendl-user:gendl-user gendl/build/run-gendl-swank /home/gendl-user/run-gendl-swank
USER gendl-user
WORKDIR /home/gendl-user
ENV HOME=/home/gendl-user
# CMD /bin/bash
CMD /home/gendl-user/run-gendl-swank
#!/bin/bash
cd ..
echo "Present Working Directory: " `pwd`
CI_PIPELINE_ID=${CI_PIPELINE_ID:="3504"}
$DIST_NAME={CI_PIPELINE_ID}L-linux64
DIST_ZIP=/home/builder/genworks/manager/staging/gendl/${CI_PIPELINE_ID}L/distribution/gendl-build${DIST_NAME}.zip
cp $DIST_ZIP .
unzip ${DIST_NAME}.zip
rm ${DIST_NAME}.zip
mv ${DIST_NAME} gendl-build/
docker build -t dcooper8/gendl:latest -f gendl/build/Dockerfile .
rm -rf gendl-build/
#!/bin/bash
~/gendl/gdl/program/gdl-ccl -e "(progn (gendl:start-gendl\!)(funcall (read-from-string \"ql:quickload\") :swank)(funcall (read-from-string \"swank:create-server\") :port 4200 :interface \"0.0.0.0\" :dont-close t))"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment