Skip to content

Commit

Permalink
readme update /D + Travis updates, test were failing
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalandy committed Apr 29, 2018
1 parent fb608c0 commit 142535b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,16 @@ script:
# Make sure that there is a useable ip address as "advertise address" because else the swarm creation fails maybe
# docker swarm init --advertise-addr `ip addr s | grep global | grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])' | head -n1`
- docker build -t "$THIS_IMAGE" .
# = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - =
- docker run -d --name "$CONTAINER_NAME" -p 2368:2368 -e url=http://localhost:2368 -e NODE_ENV=production "$THIS_IMAGE"
- echo "Wait for $CONTAINER_NAME to be available..."
- echo "Wait for $CONTAINER_NAME to start..."
- until $(curl --output /dev/null --silent --head --fail http://localhost:2368); do
echo "Waiting for $CONTAINER_NAME container to run...";
sleep 3;
done
# = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - =
- curl http://localhost:2368 | grep "The professional publishing platform"
# = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - =
- echo "Time to run official docker test on the container..."
- ~/official-images/test/run.sh "$THIS_IMAGE"
# = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - =
- echo "--- TEST 01 ---" && uname -a;
- echo "--- TEST 02 ---" && node --version;
- echo "--- TEST 03 ---" && cat /var/lib/ghost/current/content/themes/casper/package.json | grep version;
- echo "--- TEST 04 ---" && cat /var/lib/ghost/current/package.json | grep version;
- echo "--- TEST 05 ---" && curl -Is --head "http://localhost:2368" | grep -F -o "HTTP/1.1 200 OK" || echo "Error --> http://localhost:2368";
- uname -a;

after_script:
- docker inspect "$THIS_IMAGE";
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[![Build Status](https://travis-ci.org/firepress-org/ghostfire.svg)](https://travis-ci.org/firepress-org/ghostfire)[![](https://images.microbadger.com/badges/image/firepress-org/ghostfire.svg)](https://microbadger.com/images/firepress-org/ghostfire "Get your own image badge on microbadger.com")[![](https://images.microbadger.com/badges/version/firepress-org/ghostfire.svg)](https://microbadger.com/images/firepress-org/ghostfire "Get your own version badge on microbadger.com")
## Status

- [![Build Status](https://travis-ci.org/firepress-org/ghostfire.svg)](https://travis-ci.org/firepress-org/ghostfire)
- [![](https://images.microbadger.com/badges/image/firepress-org/ghostfire.svg)](https://microbadger.com/images/firepress-org/ghostfire "Get your own image badge on microbadger.com")
- [![](https://images.microbadger.com/badges/version/firepress-org/ghostfire.svg)](https://microbadger.com/images/firepress-org/ghostfire "Get your own version badge on microbadger.com")
- **Travis** build details: https://travis-ci.org/firepress-org/ghostfire


## Base Docker Image

- [node:8.11.1-alpine](https://registry.hub.docker.com/_/node/)


## Travis build

https://travis-ci.org/firepress-org/ghostfire


## Developper setup

I will share soon the local setup I use on my mac.
It will be on a dedicated git repo.
- I will share soon the setup I use on my mac to develop Ghost and/or Ghost Themes.
- It will be on a dedicated git repo.


## Contributing
Expand All @@ -35,10 +35,10 @@ Copyright (c) 2013-2017 Ghost Foundation - Released under the [MIT license](LICE

## Sources & Fork

- **standard-build** This Git repo is available [here](https://github.com/firepress-org/xyz). It’s based on:
- **linear-build** This Git repo is available [here](https://github.com/firepress-org/ghostfire). It’s based on:
https://github.com/docker-library/ghost/tree/7eb6348d2a5493546577508d2cbae0a9922e1390/1/alpine

- **multi-build**I’m also working on the **multi-build version** as well. See https://github.com/mmornati/docker-ghostblog
- **multi-build**You might be interessed by the multi-build version as well. See https://github.com/mmornati/docker-ghostblog.


## Author
Expand Down

0 comments on commit 142535b

Please sign in to comment.