Skip to content

Commit

Permalink
initial commit (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
circa10a authored Dec 21, 2018
1 parent 6a509b0 commit 987b421
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
18 changes: 9 additions & 9 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ NAMESPACE=${USER}/${PROJECT}
echo $docker_password | docker login -u=$USER --password-stdin

# Latest x86
docker build -t $NAMESPACE:latest .
docker push $NAMESPACE:latest
docker build -t $NAMESPACE:latest . && \
docker push $NAMESPACE:latest && \
# Versioned x86
docker tag $NAMESPACE:latest $NAMESPACE:$VERSION
docker tag $NAMESPACE:latest $NAMESPACE:$VERSION && \
docker push $NAMESPACE:$VERSION

# prepare qemu for ARM builds
docker run --rm --privileged multiarch/qemu-user-static:register --reset

# Latest ARM
docker build -f ./Dockerfile.rpi -t $NAMESPACE:latest-rpi .
docker push $NAMESPACE:latest-rpi
docker build -f ./Dockerfile.rpi -t $NAMESPACE:latest-rpi . && \
docker push $NAMESPACE:latest-rpi && \
# Versioned ARM
docker tag $NAMESPACE:latest-rpi $NAMESPACE:$VERSION-rpi
docker push $NAMESPACE:$VERSION-rpi
docker tag $NAMESPACE:latest-rpi $NAMESPACE:$VERSION-rpi && \
docker push $NAMESPACE:$VERSION-rpi && \

# Git tags
git remote set-url origin https://$USER:$github_api_key@github.com/$USER/$PROJECT.git
git tag $VERSION
git remote set-url origin https://$USER:$github_api_key@github.com/$USER/$PROJECT.git && \
git tag $VERSION && \
git push --tags
7 changes: 6 additions & 1 deletion doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Changelog

## 0.3.6

Features:
- Print configuration at startup

## 0.3.5

Features:
- Scheduling documentation

## 0.3.4

Features:
Expand Down
3 changes: 3 additions & 0 deletions ouroboros/ouroboros
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ if __name__ == "__main__":
import logging
from ouroboros.main import main
import time

log = logging.getLogger(__name__)
args = cli.parse(sys.argv[1:])
start_http_server(args.metrics_port, addr=args.metrics_addr)
api_client = docker.APIClient(base_url=args.url)
logging.basicConfig(**set_logger(args.loglevel))
schedule.every(args.interval).seconds.do(
main, args=args, api_client=api_client)
log.info(f"Ouroboros configuration: {vars(args)}")

while True:
schedule.run_pending()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read_reqs(requirements):

setup(
name='ouroboros-cli',
version='0.3.5',
version='0.3.6',
description='Automatically update running docker containers',
long_description=readme(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 987b421

Please sign in to comment.