To build this locally, run this script to fetch the latest tarball and trigger an OSBS build in Brew:

```
./get-sources-jenkins.sh --scratch
```

Or, if you want to just build with docker, you'll have to first fetch the tarball from here:

* link:https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/crw_master/lastSuccessfulBuild/artifact/codeready-workspaces/assembly/codeready-workspaces-assembly-main/target/codeready-workspaces-assembly-main.tar.gz[Latest master branch build]
or
* link:https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/crw_stable-branch/lastSuccessfulBuild/artifact/codeready-workspaces/assembly/codeready-workspaces-assembly-main/target/codeready-workspaces-assembly-main.tar.gz[Latest stable branch build]

Or, if you want to build it yourself, see link:https://github.com/redhat-developer/codeready-workspaces-productization/blob/master/devdoc/building/building-crw.adoc#make-changes-to-crw-and-re-deploy-to-minishift[Make changes to CRW and re-deploy]

Then edit the Dockerfile to add your subscription details:

```
RUN subscription-manager register --username username --password password --auto-attach
RUN subscription-manager repos --enable rhel-7-server-rpms -enable rhel-server-rhscl-7-rpms
```

Finally, you can run the build locally:

```
docker build -t server-container .
```

See also:

* https://github.com/redhat-developer/codeready-workspaces-productization/blob/master/devdoc/building/osbs-container-builds.adoc
