1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[docker] files for build static binary

This commit is contained in:
Witold Filipczyk 2022-12-01 16:58:47 +01:00
parent 8c6d8d3529
commit 6adcaadd62
6 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,48 @@
#
# [ x86_64 ] elinks docker development environment
#
# [*] base system
# get latest alpine
FROM alpine:edge
# prepare system
RUN apk update && apk add git meson gcc g++ cmake pkgconfig
# install
# [*] install libraries
RUN cd /root && apk add \
brotli-dev \
brotli-static \
bzip2-dev \
bzip2-static \
expat-dev \
expat-static \
libevent-dev \
libevent-static \
libidn-dev \
libxml2-dev \
linux-headers \
luajit-dev \
ncurses-dev \
ncurses-static \
openssl1.1-compat-dev \
openssl1.1-compat-libs-static \
sqlite-dev \
sqlite-static \
zlib-dev \
zlib-static \
zstd-dev \
xz-dev \
xz-static
## [*] elinks sources
# get elinks source
RUN cd /root; git clone https://github.com/rkd77/elinks
## [*] Compilation
#
ADD mes_static.sh /root/elinks/mes_static.sh
RUN cd /root/elinks; \
./mes_static.sh;

2
docker/alpine-static/build.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
sudo docker build -t "elinks-alpine-static-dev:latest" .

View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo docker container stop elinks-alpine-static-dev
sudo docker container rm elinks-alpine-static-dev

View File

@ -0,0 +1,54 @@
#!/bin/sh
rm -rf /tmp/builddir
meson /tmp/builddir \
-D88-colors=true \
-D256-colors=true \
-Dbacktrace=false \
-Dbittorrent=true \
-Dbrotli=true \
-Dbzlib=true \
-Dcgi=true \
-Dcss=true \
-Dcombining=false \
-Ddgi=true \
-Dexmode=true \
-Dfastmem=true \
-Dfsp=false \
-Dgemini=true \
-Dgettext=false \
-Dgnutls=false \
-Dgopher=true \
-Dgpm=false \
-Dguile=false \
-Didn=true \
-Dipv6=true \
-Dlibev=false \
-Dlibevent=true \
-Dluapkg='luajit' \
-Dlzma=true \
-Dmailcap=true \
-Dmouse=true \
-Dnls=true \
-Dnntp=true \
-Dopenssl=true \
-Dperl=false \
-Dpython=false \
-Dquickjs=false \
-Druby=false \
-Dsm-scripting=false \
-Dspidermonkey=false \
-Dstatic=true \
-Dterminfo=false \
-Dtest=false \
-Dtre=false \
-Dtrue-color=true \
-Dutf-8=true \
-Dwithdebug=false \
-Dx=false \
-Dxbel=true \
-Dzlib=true \
-Dzstd=true
meson compile -C /tmp/builddir

6
docker/alpine-static/run.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
sudo docker run -it \
--name=elinks-alpine-static-dev \
-v /tmp:/tmp/host \
elinks-alpine-static-dev:latest \
/bin/sh

3
docker/alpine-static/shell.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo docker start elinks-alpine-static-dev
sudo docker exec -it elinks-alpine-static-dev sh