File tree 8 files changed +36
-5
lines changed
8 files changed +36
-5
lines changed Original file line number Diff line number Diff line change
1
+ .idea
2
+ * .iml
Original file line number Diff line number Diff line change @@ -51,8 +51,10 @@ RUN apt-get -y install git bash-completion git-flow gitk tig && \
51
51
# =============================================
52
52
# Install java12
53
53
# =============================================
54
- RUN apt-get install -y openjdk-12 -jdk && \
54
+ RUN apt-get install -y openjdk-11 -jdk && \
55
55
apt-get clean
56
+ # RUN apt-get install -y openjdk-12-jdk && \
57
+ # apt-get clean
56
58
57
59
# =============================================
58
60
# Install go
@@ -190,6 +192,9 @@ RUN chmod go-w /usr /usr/bin && find /usr/bin/ -name "*" -exec chmod a+x {} \;
190
192
RUN /usr/bin/config-append
191
193
RUN rm -rf /tmp/*
192
194
195
+ RUN apt-get install -y maven
196
+
197
+
193
198
# =============================================
194
199
# Bootstrap image
195
200
# =============================================
Original file line number Diff line number Diff line change 1
1
export CONTAINER =devbox
2
- export IMAGE =docker.pkg.github.com/oysteinlunde /devbox/devbox:latest
2
+ export IMAGE =docker.pkg.github.com/erik-romson /devbox/devbox:latest
3
3
export DEVBOX_IP =127.0.0.2
4
4
export PORTS =$(docker inspect --format =' {{.Config.ExposedPorts}}' $IMAGE | sed -e ' s#[^ 0-9]##g' )
5
5
export HOME_VOLUME =devbox-home
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
2
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
4
+
5
+ <modelVersion >4.0.0</modelVersion >
6
+ <groupId >devbox</groupId >
7
+ <artifactId >devbox</artifactId >
8
+ <packaging >pom</packaging >
9
+ <name >devbox Docker Pom</name >
10
+ <url >http://mtshub.com/</url >
11
+ <properties >
12
+ </properties >
13
+ <version >0-SNAPSHOT</version >
14
+ <!-- <groupId>io.fabric8</groupId>-->
15
+ <!-- <artifactId>docker-maven-plugin</artifactId>-->
16
+ <!-- <version>${docker-maven-plugin.version}</version>-->
17
+
18
+
19
+
20
+ </project >
21
+
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
source container-props.ini
3
3
4
+ SCRIPT_FOR_USER=$USER
5
+
4
6
# echo "set CONTAINER=$CONTAINER" > $SCRIPT_DIR/cmd/container-props.cmd
5
7
6
8
if [ " $1 " = " -h" ]; then
@@ -47,7 +49,8 @@ if [ "$1" != "-o" -a "$1" != "-l" ];then
47
49
fi
48
50
49
51
# Run image
50
- docker run --privileged --rm -d -it -h devbox $PORT_MAPS $HOST_MAPS -e PORTS=" $PORTS " -e DEVBOXUSER=$USER -v /var/run/docker.sock:/var/run/docker.sock -v /c:/mnt/c:consistent -v $HOME_VOLUME :/home --name $CONTAINER $IMAGE
52
+ # docker run --privileged --rm -d -it -h devbox $PORT_MAPS $HOST_MAPS -e PORTS="$PORTS" -e DEVBOXUSER=$SCRIPT_FOR_USER -v /var/run/docker.sock:/var/run/docker.sock -v /c:/mnt/c:consistent -v $HOME_VOLUME:/home --name $CONTAINER $IMAGE
53
+ docker run --privileged --rm -d -it -h devbox $PORT_MAPS $HOST_MAPS -e PORTS=" $PORTS " -e " DOCKER_HOST=$( ip -4 addr show docker0 | grep -Po ' inet \K[\d.]+' ) " -e DEVBOXUSER=$SCRIPT_FOR_USER -v /var/run/docker.sock:/var/run/docker.sock -v ~ /.ssh:/home/$USER /.ssh -v $HOME_VOLUME :/home --name $CONTAINER $IMAGE
51
54
52
55
echo Starting $CONTAINER ...
53
56
59
62
60
63
$SCRIPT_DIR /login.sh
61
64
62
- # docker exec --user $USER -t -i devbox /usr/bin/ttyd-boot.sh
65
+ # docker exec --user $SCRIPT_FOR_USER -t -i devbox /usr/bin/ttyd-boot.sh
63
66
64
67
# ./init-ssh.sh
65
68
66
69
# for SERVER in devbox $DEVBOX_IP
67
70
# do
68
- # ssh-keygen -q -f "/home/$USER /.ssh/known_hosts" -R $SERVER &> /dev/null
71
+ # ssh-keygen -q -f "/home/$SCRIPT_FOR_USER /.ssh/known_hosts" -R $SERVER &> /dev/null
69
72
# ssh -o StrictHostKeyChecking=no $SERVER exit &> /dev/null
70
73
# done
71
74
You can’t perform that action at this time.
0 commit comments