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:
parent
8c6d8d3529
commit
6adcaadd62
48
docker/alpine-static/Dockerfile
Normal file
48
docker/alpine-static/Dockerfile
Normal 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
2
docker/alpine-static/build.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
sudo docker build -t "elinks-alpine-static-dev:latest" .
|
3
docker/alpine-static/cleanup.sh
Executable file
3
docker/alpine-static/cleanup.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
sudo docker container stop elinks-alpine-static-dev
|
||||
sudo docker container rm elinks-alpine-static-dev
|
54
docker/alpine-static/mes_static.sh
Executable file
54
docker/alpine-static/mes_static.sh
Executable 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
6
docker/alpine-static/run.sh
Executable 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
3
docker/alpine-static/shell.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
sudo docker start elinks-alpine-static-dev
|
||||
sudo docker exec -it elinks-alpine-static-dev sh
|
Loading…
Reference in New Issue
Block a user