mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Trying to figure out networking problems
This commit is contained in:
committed by
James Jeffrey
parent
bcd79ce4a6
commit
edde79e061
@@ -67,10 +67,9 @@ integration_tests:
|
|||||||
script:
|
script:
|
||||||
- go build -o functions-alpine
|
- go build -o functions-alpine
|
||||||
- docker build -t funcy/functions:latest .
|
- docker build -t funcy/functions:latest .
|
||||||
# - make docker-test-run-with-bolt
|
# - DOCKER_LOCATION=container_ip make docker-test-run-with-sqlite3
|
||||||
- DOCKER_LOCATION=container_ip make docker-test-run-with-sqlite3
|
# - DOCKER_LOCATION=container_ip make docker-test-run-with-postgres
|
||||||
# - make docker-test-run-with-postgres
|
- DOCKER_LOCATION=container_ip make docker-test-run-with-mysql
|
||||||
# - make docker-test-run-with-redis
|
|
||||||
|
|
||||||
deploy_job:
|
deploy_job:
|
||||||
only:
|
only:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ case "$1" in
|
|||||||
docker run --name func-server --privileged -v /var/run/docker.sock:/var/run/docker.sock -d -e NO_PROXY -e HTTP_PROXY -e DOCKER_HOST=${DOCKER_HOST} -e LOG_LEVEL=debug -p 8080:8080 funcy/functions
|
docker run --name func-server --privileged -v /var/run/docker.sock:/var/run/docker.sock -d -e NO_PROXY -e HTTP_PROXY -e DOCKER_HOST=${DOCKER_HOST} -e LOG_LEVEL=debug -p 8080:8080 funcy/functions
|
||||||
sleep 1
|
sleep 1
|
||||||
docker logs func-server
|
docker logs func-server
|
||||||
|
docker inspect -f '{{.NetworkSettings.IPAddress}}' func-server
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"mysql" )
|
"mysql" )
|
||||||
@@ -19,6 +20,8 @@ case "$1" in
|
|||||||
export MYSQL_PORT=3306
|
export MYSQL_PORT=3306
|
||||||
docker run --name func-server --privileged -d -e NO_PROXY -e HTTP_PROXY -e DOCKER_HOST=${DOCKER_HOST} -e LOG_LEVEL=debug -e "DB_URL=mysql://root:root@tcp(${MYSQL_HOST}:${MYSQL_PORT})/funcs" -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock funcy/functions
|
docker run --name func-server --privileged -d -e NO_PROXY -e HTTP_PROXY -e DOCKER_HOST=${DOCKER_HOST} -e LOG_LEVEL=debug -e "DB_URL=mysql://root:root@tcp(${MYSQL_HOST}:${MYSQL_PORT})/funcs" -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock funcy/functions
|
||||||
docker logs func-server
|
docker logs func-server
|
||||||
|
docker inspect -f '{{.NetworkSettings.IPAddress}}' func-mysql-test
|
||||||
|
docker inspect -f '{{.NetworkSettings.IPAddress}}' func-server
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -32,6 +35,8 @@ case "$1" in
|
|||||||
export POSTGRES_PORT=5432
|
export POSTGRES_PORT=5432
|
||||||
docker run --name func-server --privileged -d -e NO_PROXY -e HTTP_PROXY -e DOCKER_HOST=${DOCKER_HOST} -e LOG_LEVEL=debug -e "DB_URL=postgres://postgres:root@${POSTGRES_HOST}:${POSTGRES_PORT}/funcs?sslmode=disable" -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock funcy/functions
|
docker run --name func-server --privileged -d -e NO_PROXY -e HTTP_PROXY -e DOCKER_HOST=${DOCKER_HOST} -e LOG_LEVEL=debug -e "DB_URL=postgres://postgres:root@${POSTGRES_HOST}:${POSTGRES_PORT}/funcs?sslmode=disable" -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock funcy/functions
|
||||||
docker logs func-server
|
docker logs func-server
|
||||||
|
docker inspect -f '{{.NetworkSettings.IPAddress}}' func-postgres-test
|
||||||
|
docker inspect -f '{{.NetworkSettings.IPAddress}}' func-server
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user