Compare commits
No commits in common. "9386c1c88d09efabbe5630376b148ff3a87d2a14" and "4a3f4f9f48fc3fac5f6e965b81b50b4a6b512da4" have entirely different histories.
9386c1c88d
...
4a3f4f9f48
2 changed files with 1 additions and 37 deletions
|
@ -1,9 +1,3 @@
|
||||||
# docker build -t IMAGE_NAME:VERSION .
|
|
||||||
|
|
||||||
# after cd ahenk-go
|
|
||||||
# docker run -it -d --ulimit nofile=1024:524288 --name CONT_NAME --mount type=bind,source=".",target=/ahenk-go/ IMAGE_NAME:VERSION "/bin/bash"
|
|
||||||
|
|
||||||
|
|
||||||
ARG CODE_VERSION=latest
|
ARG CODE_VERSION=latest
|
||||||
FROM debian:${CODE_VERSION}
|
FROM debian:${CODE_VERSION}
|
||||||
|
|
||||||
|
@ -17,7 +11,6 @@ RUN apt-get install curl wget tree nano -y
|
||||||
|
|
||||||
### INSTALL BUILD DEPENDENCIES ###
|
### INSTALL BUILD DEPENDENCIES ###
|
||||||
RUN apt-get install pbuilder -y
|
RUN apt-get install pbuilder -y
|
||||||
RUN apt-get install dh-golang -y
|
|
||||||
RUN apt-get install dh-make-golang -y
|
RUN apt-get install dh-make-golang -y
|
||||||
RUN apt-get install cowbuilder -y
|
RUN apt-get install cowbuilder -y
|
||||||
RUN apt-get install golang-github-sevlyar-go-daemon-dev -y
|
RUN apt-get install golang-github-sevlyar-go-daemon-dev -y
|
||||||
|
@ -28,13 +21,7 @@ RUN mkdir /var/cache/pbuilder/base.cow
|
||||||
# RUN cowbuilder --create
|
# RUN cowbuilder --create
|
||||||
# FIXME Build Error
|
# FIXME Build Error
|
||||||
|
|
||||||
# Enable UTF8 Encoding
|
|
||||||
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
|
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
|
||||||
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
||||||
RUN echo "tr_TR.UTF-8 UTF-8" >> /etc/locale.gen
|
|
||||||
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
||||||
ENV LANG en_US.UTF-8
|
|
||||||
ENV LANGUAGE en_US:en
|
|
||||||
ENV LC_ALL en_US.UTF-8
|
|
||||||
RUN apt install locales -y
|
|
||||||
RUN locale-gen en_US.UTF-8
|
RUN locale-gen en_US.UTF-8
|
|
@ -12,34 +12,11 @@ mkdir /build
|
||||||
cd /build || exit
|
cd /build || exit
|
||||||
dh-make-golang make -allow_unknown_hoster "$GIT_HOST/$GIT_ORG/$GIT_REPO"
|
dh-make-golang make -allow_unknown_hoster "$GIT_HOST/$GIT_ORG/$GIT_REPO"
|
||||||
|
|
||||||
# TODO Add option to disable writing all these files all the time (-s --skip)
|
|
||||||
nano itp-ahenk-go.txt
|
nano itp-ahenk-go.txt
|
||||||
sendmail -t < itp-ahenk-go.txt
|
sendmail -t < itp-ahenk-go.txt
|
||||||
|
|
||||||
cd ahenk-go || exit
|
cd ahenk-go || exit
|
||||||
grep --color=always -r TODO debian
|
grep -r TODO debian
|
||||||
echo -e "\nThese files needs review. Starting reviewing automatically in 10sec...\n"
|
|
||||||
sleep 10
|
|
||||||
# TODO Allow users to escape from automatic review and manually do it while in this script
|
|
||||||
|
|
||||||
# Edit files that contains TODO keyword until there is none of them
|
|
||||||
while [[ $(grep -r TODO debian | wc --lines) -ne 0 ]]
|
|
||||||
do
|
|
||||||
nano "$(grep -r TODO debian | awk '{sub(/:.*/,"")} NR==1')"
|
|
||||||
|
|
||||||
echo "Continuing from next file..."
|
|
||||||
sleep 1
|
|
||||||
grep --color=always -r TODO debian
|
|
||||||
sleep 5
|
|
||||||
|
|
||||||
# TODO Allow user to reviewing remaining files, choosing between them, optional skipping, and waiting for an answer (continue? [Y/n])
|
|
||||||
done
|
|
||||||
echo "ALL FILES DONE"
|
|
||||||
|
|
||||||
sleep 5
|
|
||||||
|
|
||||||
head -100 debian/**/*
|
head -100 debian/**/*
|
||||||
|
|
||||||
# TODO ask user to continue
|
|
||||||
|
|
||||||
git add debian && git commit -a -m 'Initial packaging'
|
|
Loading…
Reference in a new issue