Skip to content

Commit ab67b82

Browse files
DrSnowbirdDrSnowbird
authored andcommitted
added delete.sh and updated README.md
1 parent ca86c9f commit ab67b82

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ mkdir ./data
3535
docker run -d --name my-jdk-mvn-py3-x11 -v $PWD/data:/data -i -t openkbs/jdk-mvn-py3-x11
3636
```
3737

38+
# Disposal-able Web Browsers using X11 Container - one of Possible Other Usages
39+
You can use this X11 Container as your "isolated Container for your internet browsing - while keep the safety (security) of HOST computer. And, you can just do below (in the future, a slim-version of this X11 only browsers will be created for just this purpose with security locked down removing sudo and other measures - to just use this Container as Docker-based Browser for more safety in browsing the Internet) to prevent using your HOST's PC/laptop to expose your HOST computer to
40+
```
41+
./run.sh firefox
42+
43+
or
44+
45+
./run.sh google-chrome --no-sandbox
46+
```
47+
3848
# To lunch multiple X11 Desktop applications
3949
Default is to show xeyes (X11 app) when using "docker-compose up" or "make up".
4050
You can use another host's teminal to enter the Container to start run, say, Firefox or Google-Chrome:

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ echo
169169
###################################################
170170

171171
cd ${BUILD_CONTEXT}
172-
set -x
172+
173173
sudo docker build ${REMOVE_CACHE_OPTION} -t ${imageTag} \
174174
${BUILD_ARGS} \
175175
${options} \
176176
-f $(basename ${DOCKERFILE}) .
177-
set +x
177+
178178
cd -
179179

180180
###################################################

delete.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash -x
2+
3+
ORGANIZATION=${ORGANIZATION:-mitre}
4+
PROJECT=${PROJECT:-recast}
5+
APPLICATION_NAME=${PWD##*/}
6+
APP_VERSION=${APP_VERSION:-1.0.0}
7+
8+
## Base image to build this container
9+
FROM_BASE=${FROM_BASE:-centos:8}
10+
imageTag=${imageTag:-"${ORGANIZATION}/${APPLICATION_NAME}"}
11+
12+
## Docker Registry (Private Server)
13+
#REGISTRY_HOST=${REGISTRY_HOME:-recast-dev-2.mitre.org:5000}
14+
#REGISTRY_IMAGE=${REGISTRY_HOST}/${imageTag}
15+
VERSION=${APP_VERSION}-$(date +%Y%m%d)
16+
17+
###################################################
18+
#### ---- Top-level build-arg arguments ----
19+
###################################################
20+
MY_DIR=$(dirname "$(readlink -f "$0")")
21+
22+
###################################################
23+
#### ---- Change this only to use your own ----
24+
###################################################
25+
baseDataFolder="$HOME/data-docker"
26+
27+
###################################################
28+
#### **** Container package information ****
29+
###################################################
30+
31+
## -- transform '-' and space to '_'
32+
#instanceName=`echo $(basename ${imageTag})|tr '[:upper:]' '[:lower:]'|tr "/\-: " "_"`
33+
instanceName=`echo $(basename ${imageTag})|tr '[:upper:]' '[:lower:]'|tr "/: " "_"`
34+
35+
echo "---------------------------------------------"
36+
echo "---- Print Log for Container for ${imageTag}"
37+
echo "---------------------------------------------"
38+
#sudo docker rm  -f $(docker ps 2>&1 | grep "reasoner-docker" | awk '{print $1}')
39+
sudo docker rm  -f ${instanceName}

0 commit comments

Comments
 (0)