Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit c5e6965

Browse files
authored
Merge pull request #2 from basecamp/updates-to-ruby-build
Updates to ruby build
2 parents 837e452 + 86cef08 commit c5e6965

File tree

4 files changed

+570
-180
lines changed

4 files changed

+570
-180
lines changed

Goopfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
github.com/BurntSushi/toml #3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005
22
github.com/cpuguy83/go-md2man #eda4fa589184806b8720ea3b9146491209877a10
3-
github.com/docker/docker #28b645755a6bbfd26dac73d9cb7200394828f47d
3+
github.com/docker/docker #6f4fbef82718212e593626419182f31a9f604316
44
github.com/docker/go-units #519db1ee28dcc9fd2474ae59fca29a810482bfb1
55
github.com/fsouza/go-dockerclient #a958d2e31b6c581391fe589cf11c2d208ae03e9f
66
github.com/google/uuid/uuid #c2e93f3ae59f2904160ceaab466009f965df46d6

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ all: assets
22
GO111MODULE=off $(GOPATH)/bin/goop go build -o bin/build_ruby
33

44
setup:
5-
go get -u github.com/jteeuwen/go-bindata/go-bindata...
6-
go get -u github.com/karmakaze/goop
5+
brew install go-bindata
6+
go install github.com/karmakaze/goop@latest
77

88
test: assets
9-
$(GOPATH)/bin/goop go test
9+
$GOPATH/bin/goop go test
1010

1111
assets:
12-
${GOPATH}/bin/go-bindata data/...
12+
go-bindata data/...
1313

1414
clean:
1515
rm -f bin/*

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,31 @@
88

99
#### 1.1 Linux
1010

11-
[Follow the instructions here](http://docs.docker.io/installation/)
11+
[Follow the instructions here to install Docker](http://docs.docker.io/installation/)
12+
[Follow the instructions here to install Go if necessary](https://go.dev/doc/install)
1213

1314
#### 1.2 OS X
1415

15-
Follow [this page](https://docs.docker.com/engine/installation/mac/) to install Docker for mac.
16+
[Follow the instructions here to install Docker](https://docs.docker.com/engine/installation/mac/) to install Docker for Mac.
1617

17-
You can now run docker commands locally on your mac.
18+
If you need to install `go` on your Mac, best install it through Homebrew:
1819

19-
#### 1.3 Install pre-requisite tools and dependencies
20+
```
21+
brew install go
22+
go version
23+
```
24+
Please note that in newer installations of Go, `GOPATH` is assumed at your $HOME/go. For this repository to build however, you'll still need to explicitly set the GOPATH variable to run `make`.
25+
26+
```
27+
echo 'export GOPATH=$HOME/go' >> ~/.bash_profile
28+
source ~/.bash_profile
29+
```
30+
31+
#### 1.3 Install work
32+
33+
Follow the [README](https://github.com/basecamp/work#first-time-setup) in order to install `work`.
34+
35+
#### 1.4 Install pre-requisite tools and dependencies
2036

2137
$ make setup
2238
$ make deps
@@ -25,8 +41,7 @@ You can now run docker commands locally on your mac.
2541

2642
### 2. Clone and build this repo
2743

28-
$ git clone [email protected]:wjessop/build_ruby.git
29-
$ cd build_ruby
44+
$ work cd build_ruby
3045
$ make
3146

3247
## Usage
@@ -68,10 +83,15 @@ See the Makefile for more functions.
6883

6984
Make sure you ran ````export DOCKER_HOST=tcp://localhost:4243```` in the terminal you are trying to use docker/build_ruby from
7085

86+
## Errors while running `make`
87+
88+
This repository collects its internal dependencies in `Goopfile.lock`. If you run into issues while running `make`, try upgrading a problematic package to a newer commit SHA. So far, that has helped solve cryptic nested dependency issues.
89+
7190
## Todo
7291

7392
* Test that a package test is actually created, perhaps requiring Docker to be running
7493
* Support Other Linux distros/package types
94+
* Migrate out of `goop` dependency management
7595

7696
## How to contribute
7797

@@ -98,7 +118,7 @@ Take a look at the TODO list or known issues for some inspiration if you need it
98118
* [The Docker API docs](http://docs.docker.io/reference/api/docker_remote_api_v1.10/)
99119
* [The Ruby download page](http://docs.docker.io/reference/api/docker_remote_api_v1.10/)
100120
* [The go-dockerclient lib](https://github.com/fsouza/go-dockerclient)
101-
* [go-bindata Github page](github.com/jteeuwen/go-bindata)
121+
* [go-bindata Github page](https://github.com/kevinburke/go-bindata)
102122

103123
## LICENSE
104124

0 commit comments

Comments
 (0)