Skip to content

Commit 7eaa1ca

Browse files
committed
update ide.sh and submodule
1 parent a3ff8cd commit 7eaa1ca

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

frontend

Submodule frontend updated 154 files

ide.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ BACKEND=$BASEDIR/backend
88
FRONTEND=$BASEDIR/frontend
99
FRONTEND_WEBJARS=$BASEDIR/frontend-webjars
1010
CONTAINER=webide
11-
CODING_IDE_HOME=$HOME/.coding-ide-home
1211

1312
valid_last_cmd() {
1413
if [ $? -ne 0 ]; then
@@ -156,12 +155,6 @@ container_is_running() {
156155
fi
157156
}
158157

159-
create_dir_if_not_exist() {
160-
if [ ! -d "$1" ]; then
161-
echo "$1 is not exist, creating..."
162-
mkdir $1
163-
fi
164-
}
165158

166159
sub_docker() {
167160

@@ -204,10 +197,9 @@ sub_docker() {
204197
RUNNING=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null)
205198

206199
if ! container_exist ; then
207-
create_dir_if_not_exist $HOME/.coding-ide-home
208200

209201
echo "creating container $CONTAINER"
210-
docker create -p 8080:8080 --env-file config -v $HOME/.coding-ide-home:/home/coding/coding-ide-home --name webide -h webide webide/webide
202+
docker create -p 8080:8080 --env-file config -v coding-ide-home:/root/.coding-ide --name webide -h webide webide/webide
211203
valid_last_cmd
212204
elif [ "$RUNNING" == "true" ]; then
213205
echo "CRITICAL - $CONTAINER is running."

0 commit comments

Comments
 (0)