Skip to content
Snippets Groups Projects
Commit 2dd7859a authored by Matthieu FAURE's avatar Matthieu FAURE
Browse files

add debug

parent e98694c9
No related branches found
No related tags found
No related merge requests found
Pipeline #2024 failed
...@@ -5,30 +5,9 @@ variables: ...@@ -5,30 +5,9 @@ variables:
before_script: before_script:
- apt-get update -yqq - apt-get update -yqq
- apt-get install -yqq curl iproute2 - apt-get install -yqq curl net-tools
hello-world: hello-world:
stage: test stage: test
script: script:
- echo "hello, simple echo" - ./script.sh
- hostname
- ss -lt
hello-ci:
stage: test
script:
- hostname
- ss -lt
- curl http://localhost:80/index.php
hello-ci2:
stage: test
script:
- echo "nothing special"
- hostname
- ss -lt
after_script:
- echo "I though I was into the Docker created by Gitlab-Runner"
- hostname
- ss -lt
- curl http://localhost:80/index.php
\ No newline at end of file
#!/usr/bin/env bash
set -e
echo-run() {
echo "===== ===== $1"
echo "$($1)"
echo
}
declare MYHOSTNAME="$(hostname)"
echo-run "hostname"
echo-run "netstat -antup"
echo-run "pwd"
echo-run "ls -al --color=auto ."
# This does not work: "failed to connect: connection refused"
# ... and I'd really like to make it work :)
echo "curl -i http://${MYHOSTNAME}/"
curl -i http://${MYHOSTNAME}/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment