Skip to content

Commit

Permalink
updated setup.md
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gahlot <gaurav.gahlot19@gmail.com>
  • Loading branch information
gauravgahlot committed Apr 14, 2020
1 parent 89fc27a commit 6239ea1
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions docs/setup.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,9 @@
# Setup the Provisioner machine with docker-compose.yml file

1. ### Setup git
```shell
Ubuntu - $ apt install -y git
CentOS - $ yum install -y git
```
Execute the following commands to bring up the Tinkerbell stack and setup the provisioner:
```shell
$ wget https://raw.githubusercontent.com/infracloudio/tink/deploy_stack/setup.sh && chmod +x setup.sh
$ ./setup.sh
```

2. ### Install docker and docker-compose as follows:
```shell
$ curl -L get.docker.com | bash
$ curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
For CentOS only:
$ systemctl start docker
$ echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
$ systemctl restart network
```

3. ### Clone the tink repo in the $GOPATH
```shell
$ git clone https://github.com/tinkerbell/tink.git
$ cd tink/deploy
```

4. ### Provide the input details in "inputenv" file which also includes the name of network interface which you would like to configure.

5. ### Run the following command as "root" user
```shell
$ source inputenv
$ ./setup_with_docker_compose.sh
```
All the environment variables are kept in the `envrc` file, which is generated from the setup itself. It is advised that you keep all the environment variables in the same file. It is important to note that if you execute the setup the again, a new `envrc` will be generated. However, the current environment configuration be saved as `envrc.bak`.

0 comments on commit 6239ea1

Please sign in to comment.