Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
Upgrading version of go australis is built with. Added script to buil…
Browse files Browse the repository at this point in the history
…d debian package inside of docker container for easy distribution in a debian environment.
  • Loading branch information
ridv committed Mar 21, 2019
1 parent 0a5607d commit 0f19631
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 54 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
0.0.7

* Initial migration to gorealis v2
* Implemented first version of create feature which takes in a YAML file.
* Added new noun to fetch status called task. Task also has two subcommands, status and config.

0.0.6

Expand Down
57 changes: 4 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,12 @@

A light-weight client for [Apache Aurora](https://aurora.apache.org/) built using [gorealis](https://github.com/paypal/gorealis).

## Usage

```
A light-weight command line client for use with Apache Aurora built using gorealis.
Usage:
australis [command]
Available Commands:
create Create an Aurora Job
fetch Fetch information from Aurora
help Help about any command
kill Kill an Aurora Job
start Start a service, maintenance on a host (DRAIN), a snapshot, or a backup.
stop Stop a service or maintenance on a host (DRAIN).
Flags:
-a, --caCertsPath string CA certificates path to use.
-c, --clientCert string Client certificate to use to connect to Aurora.
-k, --clientKey string Client key to use to connect to Aurora.
-h, --help help for australis
-i, --insecureSkipVerify Skip verification.
-p, --password string Password to use for API authentication
-s, --scheduler_addr string Aurora Scheduler's address.
-u, --username string Username to use for API authentication
-z, --zookeeper string Zookeeper node(s) where Aurora stores information.
Use "australis [command] --help" for more information about a command.
```

## Sample commands:

### Fetching current leader
`australis fetch leader [ZK NODE 1] [ZK NODE 2]...[ZK NODE N]`

### Fetching status/mode of a agent
`australis fetch status [HOST 1] [HOST 2]...[HOST N]`

### Setting host to DRAIN:
`australis start drain [HOST 1] [HOST 2]...[HOST N]`

### Taking hosts out of DRAIN (End maintenance):
`australis stop drain [HOST 1] [HOST 2]...[HOST N]`

### Force a snapshot
`australis force snapshot`

### Force a backup
`australis force backup`
## Usage
See the [documentation](docs/australis.md) for more information.

## Status
Australis is a work in progress and does not support all the features of Apache Aurora.


### Building debian file
From root of the repository run:

`debuild -d -us -uc -b`
### Building debian package
From the inside of the deb-packaging folder, run [build_deb.sh](deb-packaging/build_deb.sh)
24 changes: 24 additions & 0 deletions cmd/docs.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package cmd

import (
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
)

func init() {
rootCmd.AddCommand(docsCmd)
}

var docsCmd = &cobra.Command{
Use: "docs",
Short: "Kill an Aurora Job",
PersistentPreRun: func(cmd *cobra.Command, args []string) {}, // We don't need a realis client for this cmd
PersistentPostRun: func(cmd *cobra.Command, args []string) {}, // We don't need a realis client for this cmd
Run: func(cmd *cobra.Command, args []string) {
err := doc.GenMarkdownTree(rootCmd, "./docs")
if err != nil {
log.Fatal(err)
}
},
}

2 changes: 1 addition & 1 deletion deb-packaging/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:16.04

RUN apt-get update -y && \
apt-get install -y build-essential devscripts dh-exec dh-make git lintian wget && \
wget https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz -O /tmp/go.tar.gz
wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz -O /tmp/go.tar.gz

RUN tar -C /usr/local -xzf /tmp/go.tar.gz

Expand Down
5 changes: 5 additions & 0 deletions deb-packaging/build_deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

docker build . -t australis_deb_builder

docker run --rm -v $HOME/go/pkg/mod:/go/pkg/mod -v $(pwd)/..:/australis australis_builder
2 changes: 2 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
australis (0.0.7) unstable; urgency=medium

* Upgraded australis to gorealis v2.
* Implemented first version of create feature which takes in a YAML file.
* Added new noun to fetch status called task. Task also has two subcommands, status and config.

-- Renan DelValle <renanidelvalle@gmail.com> Wed, 26 Dec 2018 15:10:00 -0700

Expand Down

0 comments on commit 0f19631

Please sign in to comment.