Skip to content

Commit

Permalink
Merge pull request #35 from Houkime/login
Browse files Browse the repository at this point in the history
Login info for README.md
  • Loading branch information
oleg-nenashev committed Jan 7, 2019
2 parents b8071d5 + d1fa6c5 commit e7ff351
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ If you use Docker for Mac, use `-Dio.jenkins.dev.host` and additional `socat` im
docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 2376:2375 bobrik/socat TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock
```

Connect to Jenkins and login:

Read "YOUR SERVER ADDRESS WILL BE AS FOLLOWS" section in server startup logs (very beginning).
Try opening these destinations in your browser while the server is running to see what works for your setup.

When successfull log into Jenkins web GUI with

Login: admin
Password: admin

#### Developing Pipeline libraries

In the _Development_ folder there is a _PipelineLib_ folder, which allows local building and testing of the library.
Expand Down
11 changes: 11 additions & 0 deletions jenkins2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@ else
fi

export JAVA_OPTS="$JAVA_OPTS ${extra_java_opts[@]}"

echo "********YOUR SERVER ADDRESS WILL BE AS FOLLOWS*******"
echo "localhost: 127.0.0.1:8080 (Usable on some setups)"
docker_ip=$(ip route show | cut -d " " -z -f 3| tr -d '\0')
echo "docker host IP: ${docker_ip}:8080 (Usable on some setups)"
container_ip=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
echo "docker container IP: ${container_ip}:8080 (Usable on some setups)"
server_ip=$(curl -s http://checkip.amazonaws.com |cut -d " " -f 5)
echo "Server external address: ${server_ip}:8080 (OS-agnostic as long as server is externally GUI-launchable (No by default))"
echo "*****************************************************"

exec /usr/local/bin/jenkins.sh "$@"

0 comments on commit e7ff351

Please sign in to comment.