magellan-proxy

command module
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2018 License: MIT Imports: 19 Imported by: 0

README

magellan-proxy - MAGELLAN HTTP request adaptor

How to use magellan-proxy in your Docker image

Add magellan-proxy in your image

(In your Dockerfile)

ADD https://github.com/groovenauts/magellan-proxy/releases/download/v0.1.4/magellan-proxy-0.1.4_linux-amd64 /usr/app/magellan-proxy
RUN chmod +x /usr/app/magellan-proxy
Change CMD of your container

Prepend "magellan-proxy" before your application's commandline.

ex1)

CMD ["bundle", "exec", "puma", "--port", "80"]
↓
CMD ["/usr/app/magellan-proxy", "bundle", "exec", "puma", "--port", "80"]

ex2)

CMD bundle exec rails server production --port 80
↓
CMD /usr/app/magellan-proxy bundle exec rails server production --port 80

You can specify port and concurrency number.

CMD ["/usr/app/magellan-proxy", "--port", "8080", "--num", "5", "bundle", "exec", "puma", "-t", "5:5", "--port", "8080"]

Installation

go get github.com/groovenauts/magellan-proxy

How to biuld

At first, install gom.

go get github.com/mattn/gom
Build for current platform
gom build
Build for Docker image (Linux/amd64)
make build
Release package
make release

or

make prerelease

and go to GitHub release page (https://github.com/groovenauts/magellan-proxy/releases) to fill release notes.

License

MIT See LICENSE.txt.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL