-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.omnetpp
42 lines (34 loc) · 1.47 KB
/
Dockerfile.omnetpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
arg from
from ${from} as env-build
from env-build as omnetpp-build
shell ["/bin/bash", "-c"]
run curl -L https://github.com/omnetpp/omnetpp/releases/download/omnetpp-6.0pre11/omnetpp-6.0pre11-src-linux.tgz| \
tar -zxv && mv /omnetpp-6.0pre11 /omnetpp && \
cd /omnetpp && \
source ./setenv -f && \
./configure WITH_OSGEARTH=no PREFER_CLANG=no && make
from env-build as inet-build
copy --from=omnetpp-build /omnetpp /omnetpp
shell ["/bin/bash", "-c"]
run cd /omnetpp && source setenv -f && \
curl -L https://github.com/inet-framework/inet/releases/download/v4.3.2/inet-4.3.2-src.tgz | \
tar -zxv -C /omnetpp/samples && \
cd /omnetpp/samples/inet4.3 && \
source setenv -f && make makefiles && make
from env-build as simu5g-build
copy --from=inet-build /omnetpp /omnetpp
shell ["/bin/bash", "-c"]
run cd /omnetpp && source setenv -f && \
cd /omnetpp/samples/inet4.3 && source setenv -f && \
curl -L https://github.com/Unipisa/Simu5G/archive/refs/tags/v1.2.0.tar.gz | \
tar -zxv -C /omnetpp/samples && \
cd /omnetpp/samples/Simu5G-1.2.0 && \
source setenv -f && make makefiles && make
from env-build
label maintainer.name="Firejox"
label maintainer.email="[email protected]"
copy --from=simu5g-build /omnetpp /omnetpp
run chown -hR 1000 /omnetpp && \
echo '[ -f "/omnetpp/setenv" ] && cd /omnetpp && source ./setenv -f && cd ~-' > /etc/profile.d/omnetpp.sh && \
sed -i 's/&//g' /omnetpp/bin/omnetpp
cmd ["/bin/bash", "-l", "-c", "omnetpp"]