Commit 1967c9ce authored by Dave Cooper's avatar Dave Cooper
Browse files

trying to fix docker thingie

parent 9333e095
Pipeline #3520 passed with stages
in 7 minutes and 49 seconds
......@@ -47,5 +47,5 @@ linux-build:
containerize:
stage: containerize
script:
- bash -x ./build/build
- bash -x ./docker/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))"
......@@ -7,7 +7,7 @@ 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/ /home/gendl-user/gendl-bin/
COPY --chown=gendl-user:gendl-user gendl/build/run-gendl-swank /home/gendl-user/run-gendl-swank
......
#!/bin/bash
#
#
# Don't try running this script at home, kids! This depends on the
# existence of build output from our legacy build system which is not
# self-contained in this repo. Hopefully a self-contained docker build
# will be coming soon.
#
#
cd ..
echo "Present Working Directory: " `pwd`
......@@ -18,7 +28,7 @@ rm ${DIST_NAME}.zip
mv ${DIST_NAME} gendl-build/
docker build -t dcooper8/gendl:latest -f gendl/build/Dockerfile .
docker build -t dcooper8/gendl:latest -f gendl/docker/Dockerfile .
rm -rf gendl-build/
......
#!/bin/bash
docker pull dcooper8/gendl:latest
#!/bin/bash
cd `dirname "$0"`/../
gendl=`pwd`
echo "gendl source home is being mounted from: ${gendl} to /home/gendl-user/gendl/ in the container."
CID=$(docker run -d -it --rm -p 9000:9000 -p 4200:4200 -h gendl \
--name gendl --mount type=bind,src=${gendl},dst=/home/gendl-user/gendl/ dcooper8/gendl:latest)
if [ -z "$CID" ]
then
echo ""
echo "Container did not start sucessfully, perhaps a name conflict with a running container?"
echo "Maybe try the ./stop script in this directory."
echo ""
else
# here you may add lines to have you way with the container using the ${CID}.
echo "You may now connect from emacs with M-x slime-connect to localhost on port 4200."
echo ""
echo "Here is your container ID:"
echo ""
echo ${CID}
export gendl_CID=${CID}
fi
#!/bin/bash
~/gendl-bin/gdl/program/gdl-ccl -e "(progn (gendl:start-gendl\!)(gendl:load-quicklisp)(funcall (read-from-string \"ql:quickload\") :swank)(funcall (read-from-string \"swank:create-server\") :port 4200 :interface \"0.0.0.0\" :dont-close t))"
#!/bin/bash
docker stop gendl -t0
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