List of commits:
Subject Hash Author Date (UTC)
run and build script a91daf3d789ac334eca951731504f1a17e79952d Ivaylo Iliev 2017-08-27 10:52:34
remove security checks 613463e0180c3e812194b0bac40aaef508d99823 Ivaylo Iliev 2017-08-27 10:52:12
add nasa api key a4f8c147880e69994a988a176298ed54dacc53db Ivaylo Iliev 2017-08-27 08:45:17
hello world json 636f0cca5234693152d25e8a6f7f2e812b39fa16 Ivaylo Iliev 2017-08-27 08:29:56
empty symfony app 9c121393c6caf39150b1eeaa274c978edef1425e Ivaylo Iliev 2017-08-26 23:05:32
update default nginx config 87638100759fe5cec69d45fbbcf7bbda3464131a Ivaylo Iliev 2017-08-26 23:03:30
Initial commit f0ac3b6d6f330c3ed2e5c760a30abf15601d0494 Ivaylo Iliev 2017-08-26 22:23:30
Commit a91daf3d789ac334eca951731504f1a17e79952d - run and build script
Author: Ivaylo Iliev
Author date (UTC): 2017-08-27 10:52
Committer name: Ivaylo Iliev
Committer date (UTC): 2017-08-27 10:52
Parent(s): 613463e0180c3e812194b0bac40aaef508d99823
Signing key:
Tree: 6f2c15da83a9c884483c71721eb334e87df072ca
File Lines added Lines deleted
build 3 9
run 45 0
File build changed (mode: 100755) (index e865b8f..df2bdb1)
1 #!/bin/bash
2
1 3 if [ -n "$1" ]; then if [ -n "$1" ]; then
2 4 VERSION=$1 VERSION=$1
3 5 else else
 
... ... docker images | grep app/server
24 26
25 27 printf "\n\n" printf "\n\n"
26 28
27 read -p "Do you want to run image with version $VERSION y/N? " -n 1 -r
28 echo # (optional) move to a new line
29 if [[ $REPLY =~ ^[Yy]$ ]]; then
30 echo # (optional) move to a new line
31 docker run --name dev-server -p 8080:80 -v $(pwd)/src:/var/www/html -d app/server:$VERSION
32 docker exec -it dev-server bash
33 else
34 printf "\n\nWhat is next:\n\tdocker run --name dev-server -p 8080:80 -v $(pwd)/src:/var/www/html -d app/server:$VERSION\n\tdocker exec -it dev-server bash"
35 fi
29 ./run $VERSION
File run added (mode: 100755) (index 0000000..c703340)
1 #!/bin/bash
2
3 read -p "Do you want to create isolated network y/N? " -n 1 -r
4 echo # (optional) move to a new line
5 if [[ $REPLY =~ ^[Yy]$ ]]; then
6 echo # (optional) move to a new line
7 docker network create --driver bridge isolated
8 else
9 printf "not creating isolated network\n"
10 fi
11
12 read -p "Do you want to run mongodb-server y/N? " -n 1 -r
13 echo # (optional) move to a new line
14 if [[ $REPLY =~ ^[Yy]$ ]]; then
15 echo # (optional) move to a new line
16 docker run --name mongodb-server -p 27017:27017 --network isolated -d mongo
17 else
18 printf "not running mongodb\n"
19 fi
20
21 if [ -n "$1" ]; then
22 VERSION=$1
23 else
24 printf "Version shall be set as a parameter.\nExample:\n\trun YOUR_VERSION\n\n"
25
26 read -p "Do you want to set VERSION to 0.0.1 y/N? " -n 1 -r
27 echo # (optional) move to a new line
28 if [[ $REPLY =~ ^[Yy]$ ]]; then
29 echo # (optional) move to a new line
30 VERSION=0.0.1
31 else
32 echo "exiting"
33 exit -1
34 fi
35 fi
36
37 read -p "Do you want to run image with version $VERSION y/N? " -n 1 -r
38 echo # (optional) move to a new line
39 if [[ $REPLY =~ ^[Yy]$ ]]; then
40 echo # (optional) move to a new line
41 docker run --name dev-server -p 8080:80 -v $(pwd)/src:/var/www/html --network isolated -d app/server:$VERSION
42 docker exec -it dev-server bash
43 else
44 printf "not running app/server:$VERSION\n"
45 fi
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/ranapat/nasa

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/ranapat/nasa

Clone this repository using git:
git clone git://git.rocketgit.com/user/ranapat/nasa

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main