Skip to content

Commit

Permalink
Pushed by gbuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Middleton committed Sep 11, 2017
1 parent bbedee9 commit ae3ec5e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 56 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ env:

install:
- pip install mkdocs

- chmod +x gbuild.sh
- chmod +x gaze-control/gazectl-wrapper.sh

script:
- ./gbuild.sh build
- ./gbuild.sh test

20 changes: 0 additions & 20 deletions gaze-control/gazectl/gaze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,3 @@
# ==`==` ==` ==`
# gaze.monokal.io

networks:
gaze_internal:

services:
plex:
image: 'plexinc/pms-docker:latest'
ports:
- '32400:32400'
environment:
- 'PLEX_CLAIM=TODO'

transmission:

sonarr:

radarr:

jackett:

ombi:
62 changes: 30 additions & 32 deletions gaze-control/gazectl/gazectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,18 @@ def __call__(self):
)
sys.exit(1)

info_items = [
['System time', 'SystemTime'],
['Server version', 'ServerVersion'],
['Operating System', 'OperatingSystem'],
['Architecture', 'Architecture'],
['Kernel version', 'KernelVersion'],
['CPUs', 'NCPU'],
['Memory', 'MemTotal'],
['Driver', 'Driver'],
['Runtime', 'DefaultRuntime'],
['Debug', 'Debug']
]
info_items = (
('System time', 'SystemTime'),
('Server version', 'ServerVersion'),
('Operating System', 'OperatingSystem'),
('Architecture', 'Architecture'),
('Kernel version', 'KernelVersion'),
('CPUs', 'NCPU'),
('Memory', 'MemTotal'),
('Driver', 'Driver'),
('Runtime', 'DefaultRuntime'),
('Debug', 'Debug'),
)

for i in info_items:
self.log("{}: {}".format(i[0], docker_info[i[1]]), 'success')
Expand Down Expand Up @@ -166,26 +166,24 @@ def __call__(self):
#

# Plex.
for service in self.config['services']:
self.log("Deploying {} service...".format(service), 'info')

self.container.run(
name='gaze_plex',
image='plexinc/pms-docker:latest',
environment=[
"PLEX_CLAIM=TODO",
"ADVERTISE_IP=0.0.0.0"
],
volumes={
'/etc/localtime': {'bind': '/etc/localtime', 'mode': 'ro'}
},
networks=['gaze_internal'],
ports={'32400/tcp': 32400},
restart_policy={"Name": "on-failure", "MaximumRetryCount": 5},
labels={"gaze.service": "plex"}
)
self.log("Deploying Plex service...", 'info')
self.container.run(
name="gaze_plex",
image='plexinc/pms-docker:latest',
environment=[
"PLEX_CLAIM=TODO",
"ADVERTISE_IP=0.0.0.0"
],
volumes={
'/etc/localtime': {'bind': '/etc/localtime', 'mode': 'ro'}
},
networks=['gaze_internal'],
ports={'32400/tcp': 32400},
restart_policy={"Name": "on-failure", "MaximumRetryCount": 5},
labels={"gaze.service": "plex"}
)

self.log("Success!", 'success')
self.log("Success!", 'success')

# Transmission.

Expand Down Expand Up @@ -337,7 +335,7 @@ def main():
parser = argparse.ArgumentParser(
prog="gaze",
formatter_class=argparse.RawDescriptionHelpFormatter,
description=helpers.ascii_banner()
description=helpers.ascii_banner().rstrip()
)

# Top-level arguments.
Expand Down
4 changes: 2 additions & 2 deletions gbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ function run_test {
echo -e "${MAGENTA}[GBUILD] Running tests...${NONE}"

GAZECTL_COMMANDS=( \
'bootstrap --noup' \
'up' \
'--help' \
'bootstrap' \
'down' \
'status' \
)
Expand Down

0 comments on commit ae3ec5e

Please sign in to comment.