Skip to content

sioncojp/galaxy

Repository files navigation

Galaxy

  • Galaxy provides you with target repository's http server as URL: http://{{commit-number}}-{{url}} by running container. galaxy

Usage

### create database writing in config.yml
> create database galaxy
> create table commits(
id bigint(20) unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
number char(40) UNIQUE NOT NULL,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX idx_number(number)
);

### run app
$ go get -u github.com/sioncojp/galaxy
$ make deps
$ make build
$ bin/galaxy -c config.yml

examples

config.yml

  • You can execute external /bin/bash script after the repository will have changed a commit number.

API

create target repository

curl http://localhost:8080/repository -X POST

show running container list

curl http://localhost:8080/container/list

show url list

curl http://localhost:8080/url/list

create/delete proxy server

$ curl http://localhost:8080/container_proxy -X POST
$ curl http://localhost:8080/container_proxy -X DELETE

create/delete container

$ curl -F "commit_number=99c6894" http://localhost:8080/container/:commit_number -X POST
$ curl -F "commit_number=99c6894" http://localhost:8080/container/:commit_number -X DELETE

Licence

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published