# Hacking Guide

## Building rocket

### Requirements

* Linux 3.8+
  * cpio
  * squashfs-tools
  * realpath
* Go 1.3+
  * jteeuwen/go-bindata

Once the requirements have been met you can build rocket by running the following commands:

```
git clone https://github.com/coreos/rocket.git
cd rocket; ./build
```

### With Docker

Alternatively, you can build rocket in a docker container with the following command. Replace $SRC with the absolute path to your rocket source code:

```
docker run -v $SRC:/opt/rocket -i -t google/golang /bin/bash -c "apt-get install -y cpio squashfs-tools realpath && cd /opt/rocket && go get github.com/jteeuwen/go-bindata/... && ./build"
```

# Hacking Guide

## Building rocket

### Requirements

* Linux 3.8+
  * cpio
  * squashfs-tools
  * realpath
  * gpg
* Go 1.3+
  * jteeuwen/go-bindata

Once the requirements have been met you can build rocket by running the following commands:

```
git clone https://github.com/coreos/rocket.git
cd rocket; ./build
```

### With Docker

Alternatively, you can build rocket in a docker container with the following command. Replace $SRC with the absolute path to your rocket source code:

```
docker run -v $SRC:/opt/rocket -i -t google/golang /bin/bash -c "apt-get install -y cpio squashfs-tools realpath && cd /opt/rocket && go get github.com/jteeuwen/go-bindata/... && ./build"
```

Add 'gpg' to build pre-requisites
Documentation: Add 'gpg' to build pre-requisites

Commit 00294ed ("stage1: gpg verify and cache retrieved coreos image")
added a dependency to 'gpg'. Add that to list of build pre-requisites.

Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@cloudius-systems.com>
