Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
bitmask-vpn
Commits
d335b3ac
Commit
d335b3ac
authored
1 year ago
by
kwadronaut
Browse files
Options
Downloads
Patches
Plain Diff
wip docker buidls
parent
da062171
Branches
main
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#181265
failed
1 year ago
Stage: build
Stage: debian
Stage: vendor
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/Dockerfile
+12
-10
12 additions, 10 deletions
docker/Dockerfile
docker/Makefile
+1
-1
1 addition, 1 deletion
docker/Makefile
docker/README.md
+1
-0
1 addition, 0 deletions
docker/README.md
with
14 additions
and
11 deletions
docker/Dockerfile
+
12
−
10
View file @
d335b3ac
# An image to build and package the BitmaskVPN (RiseupVPN and other branded builds)
# (c) LEAP Encryption Access Project 2018-202
1
# (c) LEAP Encryption Access Project 2018-202
3
FROM
ubuntu:2
0
.04
as
builder
FROM
ubuntu:2
2
.04
as
builder
MAINTAINER
LEAP Encryption Access Project <info@leap.se>
ARG
GO_VERSION=1.1
6
ARG
GO_VERSION=1.1
7
LABEL
Description="An image to build Bitmask Lite" Vendor="LEAP" Version="1.2"
ENV
OSXSDK_SHA256="631b4144c6bf75bf7a4d480d685a9b5bda10ee8d03dbf0db829391e2ef858789" \
PATH="$PATH:/osxcross/target/bin:/usr/lib/go-${GO_VERSION}/bin"
...
...
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get upgrade --yes && \
git curl wget
\
libappindicator3-dev libgtk-3-dev
\
webkit2gtk-4.0
\
mingw-w64 upx-ucl python snapd
\
mingw-w64 upx-ucl python
3
snapd
\
unzip
sudo
locales
\
devscripts fakeroot debhelper
\
clang llvm-dev libxml2-dev uuid-dev
\
...
...
@@ -26,7 +26,7 @@ RUN apt-get update && apt-get upgrade --yes && \
software-properties-common dh-golang
\
jq
\
squashfs-tools
\
qtbase5-dev qttools5-dev-tools qt5-qmake g++ qtdeclarative5-dev qt
5-default
\
qtbase5-dev qttools5-dev-tools qt5-qmake g++ qtdeclarative5-dev qt
base5-dev
\
golang-
${
GO_VERSION
}
-go
golang-go golang-golang-x-tools-dev
&&
\
rm
-r
/var/lib/apt/lists/
*
...
...
@@ -43,10 +43,12 @@ RUN git clone https://github.com/hogliux/bomutils && \
cd
bomutils
&&
make
&&
sudo
make
install
# xar (for osx packaging)
RUN
git clone https://github.com/VantaInc/xar
&&
\
cd
xar/xar
&&
\
./autogen.sh
&&
./configure
&&
\
make
&&
sudo
make
install
# there's no xar deb package, it's abandonware
# see
# RUN git clone https://github.com/VantaInc/xar && \
# cd xar/xar && \
# ./autogen.sh && ./configure && \
# make && sudo make install
# Grab the core18 and core20 snap (which snapcraft uses as a base) from the stable channel
# and unpack it in the proper place, to speed up snapcraft builds in the containers.
...
...
@@ -75,9 +77,9 @@ RUN ln -s /snap/bin/snapcraft /bin/
# cache go modules
RUN
rm
-rf
/gomods
&&
mkdir
-p
/gomods/packages
COPY
mods/packages/ /gomods/packages/
WORKDIR
/gomods
COPY
mods/go.* /gomods/
COPY
mods/packages/ /gomods/packages/
RUN
go mod download
COPY
builder.sh /
...
...
This diff is collapsed.
Click to expand it.
docker/Makefile
+
1
−
1
View file @
d335b3ac
...
...
@@ -17,7 +17,7 @@ SIGNCODE=osslsigncode
SECRETS
=
"leap/secrets/windoze"
build
:
mkdir
-p
mods
&&
cp
../go.mod ../go.sum mods/
&&
cp
-r
../packages mods/
mkdir
-p
mods
&&
cp
../go.mod ../go.sum mods/
&&
touch
../packages
&&
cp
-r
../packages mods/
docker build
-t
$(
REGISTRY
)
/
$(
IMAGE
)
:latest .
deps
:
sudo
apt
install
osslsigncode
...
...
This diff is collapsed.
Click to expand it.
docker/README.md
+
1
−
0
View file @
d335b3ac
You can use the makefile to build the image.
Need to install docker and make.
"make packages" will build packages inside the builder container.
Use https://github.com/kalikaneko/squid-in-a-can if you want to save some bandwith while building your images.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment