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
5d8cb5ae
Commit
5d8cb5ae
authored
1 year ago
by
kwadronaut
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] update build docker
parent
ec3f2714
Branches
main
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#152879
failed
1 year ago
Stage: build
Stage: debian
Stage: vendor
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/Dockerfile
+11
-6
11 additions, 6 deletions
docker/Dockerfile
with
11 additions
and
6 deletions
docker/Dockerfile
+
11
−
6
View file @
5d8cb5ae
# 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:20.04
as
builder
...
...
@@ -24,13 +24,14 @@ RUN apt-get update && apt-get upgrade --yes && \
libssl-dev bash patch
tar
\
xz-utils bzip2
gzip sed
cpio libbz2-dev
\
software-properties-common dh-golang
\
jq
\
jq
qt5dxcb-plugin
\
squashfs-tools
\
qtbase5-dev qttools5-dev-tools qt5-qmake g++ qtdeclarative5-dev qt5-default
\
golang-
${
GO_VERSION
}
-go
golang-go golang-golang-x-tools-dev
&&
\
rm
-r
/var/lib/apt/lists/
*
# osx cross compiling
# here xar also gets pulled in
RUN
git clone https://github.com/tpoechtrager/osxcross
&&
\
cd
osxcross/tarballs
&&
\
wget https://s3.dockerproject.org/darwin/v2/MacOSX10.10.sdk.tar.xz
&&
\
...
...
@@ -42,11 +43,12 @@ RUN git clone https://github.com/tpoechtrager/osxcross && \
RUN
git clone https://github.com/hogliux/bomutils
&&
\
cd
bomutils
&&
make
&&
sudo
make
install
# see above - https://github.com/KwadroNaut/xar/tree/back-to-future should work too
# xar (for osx packaging)
RUN
git clone https://github.com/VantaInc/xar
&&
\
cd
xar/xar
&&
\
./autogen.sh
&&
./configure
&&
\
make
&&
sudo
make
install
#
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.
...
...
@@ -73,10 +75,13 @@ RUN echo 'exec "$SNAP/usr/bin/python3" "$SNAP/bin/snapcraft" "$@"' >> /snap/bin/
RUN
chmod
+x /snap/bin/snapcraft
RUN
ln
-s
/snap/bin/snapcraft /bin/
# needs to be fixed
# cache go modules
RUN
rm
-rf
/gomods
&&
mkdir
-p
/gomods/packages
RUN
mkdir
-p
/gomods/packages
WORKDIR
/gomods
COPY
mods/go.* /gomods/
RUN
echo
$(
ls
-al
/
)
COPY
mods/packages/ /gomods/packages/
RUN
go mod download
...
...
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