-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gaurav Gahlot <[email protected]>
- Loading branch information
1 parent
143ed65
commit 05a1627
Showing
1 changed file
with
6 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |