File tree 6 files changed +28
-73
lines changed
6 files changed +28
-73
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,6 @@ _rim.ps1
22
22
/Rig.app /build-x86_64
23
23
/Rig.app /lib
24
24
/releases
25
+ /tests /results
26
+ /build
27
+ /rig- * .tar.gz
Original file line number Diff line number Diff line change 1
1
2
2
FROM alpine:3.15
3
3
4
- COPY . rig
5
-
6
- RUN apk add curl
4
+ RUN apk add curl bash
7
5
8
6
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rust.sh && sh rust.sh -y
9
7
@@ -30,10 +28,10 @@ RUN cd openssl-* && \
30
28
rm -rf /usr/local/bin/openssl \
31
29
/usr/local/share/{man/doc}
32
30
33
- # build rig ---------------------------------------------------------------
31
+ RUN mkdir /work
34
32
35
- RUN source $HOME/.cargo/env && cd rig && make linux
33
+ WORKDIR /work
36
34
37
- RUN mkdir out && cp rig/rig-*.tar.gz out
35
+ RUN apk add file
38
36
39
- RUN ls -l out
37
+ ENV PATH= "/root/.cargo/bin:$PATH"
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ linux: export DEP_OPENSSL_INCLUDE = /usr/local/include/
43
43
linux : rig-$(VERSION ) .tar.gz
44
44
45
45
rig-$(VERSION ) .tar.gz : target/release/rig
46
+ ls -l target/release/rig
46
47
strip -x target/release/rig
47
48
mkdir -p build/bin
48
49
mkdir -p build/share/bash-completion/completions
@@ -55,19 +56,20 @@ rig-$(VERSION).tar.gz: target/release/rig
55
56
curl -L -o build/share/rig/cacert.pem ' https://curl.se/ca/cacert.pem'
56
57
tar cz -C build -f $@ bin share
57
58
59
+ shell-linux :
60
+ docker compose build
61
+ docker run -ti -v .:/work rlib/rig-builder:latest bash
62
+
58
63
VARIANTS = ubuntu-20.04 ubuntu-22.04 debian-11 debian-12 centos-7 rockylinux-8 rockylinux-9 opensuse/leap-15.3 opensuse/leap-15.4 fedora-37 fedora-38 almalinux-8 almalinux-9
59
64
print-linux-variants :
60
65
@echo $(VARIANTS )
61
66
62
67
linux-in-docker :
63
- docker build -t ' rig:latest' .
64
- docker run --name quickrig ' rig:latest' ls out
65
- docker cp ' quickrig:out' .
66
- ls out
67
- cp out/rig* .
68
+ docker compose build
69
+ docker run -v .:/work rlib/rig-builder:latest make linux
68
70
69
71
define GEN_TESTS
70
- linux-test-$(variant ) : rig- $( VERSION ) .tar.gz
72
+ linux-test-$(variant ) :
71
73
mkdir -p tests/results
72
74
rm -f tests/results/$(variant ) .fail tests/results/$(variant ) .success
73
75
docker run -t --rm -v $(PWD ) :/work `echo $(variant ) | tr - :` \
Original file line number Diff line number Diff line change
1
+
2
+ services :
3
+ rig :
4
+ image : " rlib/rig-builder:latest"
5
+ build :
6
+ context : .
7
+ dockerfile : Dockerfile
8
+ command : sleep 100000d
9
+ volumes :
10
+ - type : bind
11
+ source : .
12
+ target : /work
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments