mirror of
https://github.com/gomods/athens
synced 2026-02-03 05:20:30 +00:00
Add support for Sail development environments (#1248)
* initial sail Dockerfile * host mount the module download cache so it's preserved over restarts * expose port 3000 * add some basic docs
This commit is contained in:
committed by
Aaron Schlesinger
parent
b6bcf0e191
commit
df82bbc0f3
@@ -0,0 +1,7 @@
|
||||
FROM codercom/ubuntu-dev-go
|
||||
|
||||
ENV GO111MODULE=on
|
||||
|
||||
LABEL share.go_mod="~/go/pkg/mod:~/go/pkg/mod"
|
||||
|
||||
EXPOSE 3000
|
||||
+13
-2
@@ -27,12 +27,13 @@ GO_BINARY_PATH=go1.11.X
|
||||
|
||||
# Run the Proxy
|
||||
|
||||
We provide two ways to run the proxy on your local machine:
|
||||
We provide three ways to run the proxy on your local machine:
|
||||
|
||||
1. Using [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/) (_we suggest this one if you're getting started_)
|
||||
2. Natively on your host
|
||||
3. Using [Sail](https://sail.dev)
|
||||
|
||||
See below for instructions to do both!
|
||||
.See below for instructions for each option!
|
||||
|
||||
## Using Docker
|
||||
|
||||
@@ -96,6 +97,16 @@ After the server starts, you'll see some console output like:
|
||||
Starting application at 127.0.0.1:3000
|
||||
```
|
||||
|
||||
## Using Sail
|
||||
|
||||
Follow instructions at [sail.dev](https://sail.dev) to setup the sail CLI. Then simply run:
|
||||
|
||||
```
|
||||
sail run gomods/athens
|
||||
```
|
||||
|
||||
The command will automatically clone the athens repo and give you a local URL that you can use to open an editor and development environment directly in your browser.
|
||||
|
||||
### Dependencies
|
||||
|
||||
# Services that Athens Needs
|
||||
|
||||
Reference in New Issue
Block a user