Commit 25f9f39a authored by Patrik Dufresne's avatar Patrik Dufresne

Merge branch 'develop/patrik/deb-build' into 'master'

Develop/patrik/deb build

See merge request pdsl/minarca!53
parents 20823794 3088b6dc
Pipeline #144873850 passed with stages
in 22 minutes and 30 seconds
......@@ -27,8 +27,18 @@ pip-log.txt
.settings
/ez_setup
.pydevproject
coverage.xml
nosetests.xml
coverage*.xml
nosetests*.xml
/sonar-project.properties
/.eggs/
deb_dist
\ No newline at end of file
deb_dist
/authenticode-certs.pem
/authenticode.pem
/*.deb
/*.exe
/*.dsc
/*.buildinfo
/*.changes
/*.tar.gz
/minarca-server/debian/changelog
This diff is collapsed.
......@@ -10,5 +10,5 @@ Standards-Version: 3.9.5
Package: minarca-server
Architecture: any
Pre-Depends: dpkg (>= 1.16.1), python3 (>= 3.5), ${misc:Pre-Depends}
Depends: adduser, rdiff-backup, openssh-client, openssh-server | ssh-server, libldap-2.4-2, ${python:Depends}, ${misc:Depends}, sudo, coreutils
Depends: adduser, rdiff-backup, openssh-client, openssh-server | ssh-server, libldap-2.4-2, ${python3:Depends}, ${misc:Depends}, sudo, coreutils, python3-distutils | libpython3.5-stdlib
Description: Minarca Web Server
\ No newline at end of file
......@@ -4,7 +4,7 @@
dh [email protected] --with python-virtualenv --with systemd
override_dh_virtualenv:
dh_virtualenv --install-suffix minarca
dh_virtualenv --install-suffix minarca --python python3
override_dh_systemd_start:
dh_systemd_start --restart-after-upgrade
FROM buildpack-deps:buster
RUN apt-get update && \
apt-get install -y --no-install-recommends \
dh-make dh-virtualenv dh-systemd \
python3-pip python3-dev python3-setuptools \
libffi-dev libldap2-dev libsasl2-dev \
git build-essential lsb-release && \
rm -rf /var/lib/apt/lists/*
# Needed. Otherwise break python3 encoding.
# see https://bugs.python.org/issue19846
ENV LANG=C.UTF-8
FROM buildpack-deps:buster
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-setuptools python3-pip python3-dev libldap2-dev libsasl2-dev rdiff-backup build-essential curl && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py && \
pip3 install virtualenv nose coverage tox --upgrade && \
rm -rf /var/lib/apt/lists/*
# Needed. Otherwise break python3 encoding.
# see https://bugs.python.org/issue19846
ENV LANG=C.UTF-8
ENV TOXFACTOR=py3
FROM buildpack-deps:stretch
RUN apt-get update && \
apt-get install -y --no-install-recommends \
dh-make dh-virtualenv dh-systemd \
python3-pip python3-dev python3-setuptools \
libffi-dev libldap2-dev libsasl2-dev \
git build-essential lsb-release && \
rm -rf /var/lib/apt/lists/*
# Needed. Otherwise break python3 encoding.
# see https://bugs.python.org/issue19846
ENV LANG=C.UTF-8
FROM buildpack-deps:stretch
RUN apt-get update && \
apt-get -qq install osslsigncode icoutils nsis cron gettext maven curl openjdk-8-jdk-headless && \
rm /etc/java-8-openjdk/accessibility.properties && \
rm -rf /var/lib/apt/lists/*
# Needed. Otherwise break python3 encoding.
# see https://bugs.python.org/issue19846
ENV LANG=C.UTF-8
FROM buildpack-deps:stretch
RUN apt-get update && \
apt-get install -y --no-install-recommends python-setuptools python-pip python-dev libldap2-dev libsasl2-dev rdiff-backup build-essential curl && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py && \
pip3 install virtualenv nose coverage tox --upgrade && \
rm -rf /var/lib/apt/lists/*
# Needed. Otherwise break python3 encoding.
# see https://bugs.python.org/issue19846
ENV LANG=C.UTF-8
ENV TOXFACTOR=py2
FROM buildpack-deps:stretch
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-setuptools python3-pip python3-dev libldap2-dev libsasl2-dev rdiff-backup build-essential curl && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py && \
pip3 install virtualenv nose coverage tox --upgrade && \
rm -rf /var/lib/apt/lists/*
# Needed. Otherwise break python3 encoding.
# see https://bugs.python.org/issue19846
ENV LANG=C.UTF-8
ENV TOXFACTOR=py3
FROM buildpack-deps:buster
ENV DEBIAN_FRONTEND noninteractive
# wine settings
ENV WINEPREFIX /wine-prefix/
ENV WINEARCH win32
ENV WINEDEBUG fixme-all
RUN set -x \
&& dpkg --add-architecture i386 && apt-get update && apt-get install -y --no-install-recommends wine wine32 xvfb xauth cabextract winbind fonts-wine ca-certificates \
&& apt-get clean \
&& wget -nv -O /usr/local/bin/winetricks 'https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks' \
&& chmod +x /usr/local/bin/winetricks \
&& wineboot -u
# jre-8u231-windows-x64.exe
ARG JDK_URL=https://github.com/frekele/oracle-java/releases/download/8u212-b10/jdk-8u212-windows-i586.exe
ARG MVN_URL=http://apache.mirror.vexxhost.com/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
# Install java
# https://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html#installing_with_config_file
RUN set -x \
&& wineboot -u \
&& winetricks win7 \
&& wget -nv -O "jdk_setup.exe" "$JDK_URL" \
&& (Xvfb :99 &) && export DISPLAY=:99 \
&& wine "jdk_setup.exe" /s REBOOT=Disable AUTO_UPDATE=0 WEB_JAVA=0 WEB_ANALYTICS=0 INSTALLDIR=C:\\java\\jdk /L "jdk_setup.log" \
&& rm jdk_setup.exe \
&& wine "C:\java\jdk\bin\java.exe" -version \
&& echo 'wine C:\\\\java\\\\jdk\\\\bin\\\\java.exe "[email protected]"' > /usr/bin/java \
&& echo 'wine C:\\\\java\\\\jdk\\\\bin\\\\javac.exe "[email protected]"' > /usr/bin/javac \
&& echo 'wine C:\\\\java\\\\jdk\\\\bin\\\\javaw.exe "[email protected]"' > /usr/bin/javaw \
&& chmod +x /usr/bin/java \
&& chmod +x /usr/bin/javac \
&& chmod +x /usr/bin/javaw \
&& /usr/bin/java -version
ENV JAVA_HOME="C:\java\jdk"
ENV WINEPATH="C:\maven\bin;C:\java\jdk\bin;C:\windows\system32;C:\windows;C:\windows\system32\wbem"
# Install maven
ADD mvn.cmd.patch /mvn.cmd.patch
RUN set -x \
&& apt-get update && apt-get install -y --no-install-recommends dos2unix && apt-get clean \
&& wget -nv -O apache-maven.tar.gz "$MVN_URL" \
&& mkdir "$WINEPREFIX/drive_c/maven" \
&& tar -C "$WINEPREFIX/drive_c/maven" -zxvf apache-maven.tar.gz --strip 1 \
&& rm apache-maven.tar.gz \
&& dos2unix "$WINEPREFIX/drive_c/maven/bin/mvn.cmd" \
&& patch -l "$WINEPREFIX/drive_c/maven/bin/mvn.cmd" /mvn.cmd.patch \
&& unix2dos "$WINEPREFIX/drive_c/maven/bin/mvn.cmd" \
&& rm /mvn.cmd.patch \
&& echo 'wine cmd /c C:\\\\maven\\\\bin\\\\mvn.cmd "[email protected]"' > /usr/bin/mvn \
&& chmod +x /usr/bin/mvn \
&& /usr/bin/mvn -version
--- mvn.cmd.orig 2019-11-29 20:15:00.051621683 -0500
+++ mvn.cmd 2019-11-29 20:14:34.727823350 -0500
@@ -169,7 +169,7 @@
:endReadAdditionalConfig
-for %%i in ("%MAVEN_HOME%"\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
+for %%i in (%MAVEN_HOME%\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
"%JAVACMD%" ^
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