---
layout: docs
title: Dockerfile Build Setup
category: registry
sub_category: setup
forkurl: https://github.com/coreos/docs/blob/master/enterprise-registry/build-support/index.md
weight: 5
---

# Dockerfile Build Support

CoreOS Enterprise Registry supports building Dockerfiles using a set of worker nodes.

## Change the feature flag

In the Enteprise Registry `config.yaml`, change the following to enable build support:

```yaml
FEATURE_BUILD_SUPPORT: false
```

to

```yaml
FEATURE_BUILD_SUPPORT: true
```

## Restart Enterprise Registry

Restart the CoreOS Enterprise Registry to enable building.

## Setup the build worker(s)

Select one (or more) machines to be used as your build workers. The machines must have Docker installed and must
not be used for any other work. The following procedure needs to be done everytime a new worker needs to be
added, but it can be automated fairly easily.

### Download the Build Worker image

```sh
docker pull quay.io/coreos/build-worker
```

### Run the Build Worker image

`docker run` the image, with `SERVER` being a *websocket URL* to your Enterprise Registry install. For example,
if your Enterprise Registry is located at `somehost.com`, then the `SERVER` will be:

If SSL is being used: ```wss://somehost.com```
If SSL is *not* being used: ```ws://somehost.com```

```sh
docker run --restart on-failure -e SERVER=wss://myenterprise.host -v /var/run/docker.sock:/var/run/docker.sock quay.io/coreos/build-worker
```

The build worker should auto-register with the Enterprise Registry and start building once jobs occur.


Add docs on build support setup
Add docs on build support setup
