diff --git a/build/package/docker/Dockerfile b/build/package/docker/Dockerfile new file mode 100644 index 0000000..757f80d --- /dev/null +++ b/build/package/docker/Dockerfile @@ -0,0 +1,27 @@ +ARG CODE_VERSION=latest +FROM debian:${CODE_VERSION} + +RUN su -c "echo 'deb http://ftp.tr.debian.org/debian sid main' >> /etc/apt/sources.list.d/sid.list" + +RUN apt-get update +RUN apt-get upgrade -y + +### INSTALL USEFUL UTILITIES ### +RUN apt-get install curl wget tree nano -y + +### INSTALL BUILD DEPENDENCIES ### +RUN apt-get install pbuilder -y +RUN apt-get install dh-make-golang -y +RUN apt-get install cowbuilder -y +RUN apt-get install golang-github-sevlyar-go-daemon-dev -y +RUN apt-get install golang-golang-x-exp-dev -y + +### CONFIGURATIONS ### +RUN mkdir /var/cache/pbuilder/base.cow +# RUN cowbuilder --create +# FIXME Build Error + +RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment +RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen +RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf +RUN locale-gen en_US.UTF-8 \ No newline at end of file diff --git a/scripts/docker-build.sh b/scripts/docker-build.sh new file mode 100644 index 0000000..3a1c26a --- /dev/null +++ b/scripts/docker-build.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# see https://people.debian.org/~stapelberg/2015/07/27/dh-make-golang.html + + +GIT_HOST="git.aliberksandikci.com.tr" +GIT_ORG="Liderahenk" +GIT_REPO="ahenk-go" + + +mkdir /build +cd /build || exit +dh-make-golang make -allow_unknown_hoster "$GIT_HOST/$GIT_ORG/$GIT_REPO" + +nano itp-ahenk-go.txt +sendmail -t < itp-ahenk-go.txt + +cd ahenk-go || exit +grep -r TODO debian +head -100 debian/**/* + +