Skip to content
Snippets Groups Projects
Commit 4fec7d0a authored by Alex ubuntu vm's avatar Alex ubuntu vm
Browse files

images building script: updated latest dev version

parent e5f91276
No related branches found
No related tags found
1 merge request!2repo: added new directory where utils scripts will be
...@@ -9,13 +9,13 @@ The files and scripts are meant to be run directly in the /L2S-M directory, as t ...@@ -9,13 +9,13 @@ The files and scripts are meant to be run directly in the /L2S-M directory, as t
- `./build/switch`: Dockerfile and related files for building the l2sm-switch Docker image. - `./build/switch`: Dockerfile and related files for building the l2sm-switch Docker image.
- `./build/controller`: Dockerfile and related files for building the l2sm-controller Docker image. - `./build/controller`: Dockerfile and related files for building the l2sm-controller Docker image.
- `./build/operator`: Dockerfile and related files for building the l2sm-operator Docker image. - `./build/operator`: Dockerfile and related files for building the l2sm-operator Docker image.
- `./build/build_and_push_images.sh`: Bash script for automating the build and push process of Docker images. - `./build/build_images.sh`: Bash script for automating the build and push process of Docker images.
## Script Usage: ## Script Usage:
### 1. Build Images: ### 1. Build Images:
```bash ```bash
./build/build_and_push_images.sh build ./build/build_images.sh build
``` ```
This command will build Docker images for l2sm-switch, l2sm-controller, and l2sm-operator. This command will build Docker images for l2sm-switch, l2sm-controller, and l2sm-operator.
...@@ -23,7 +23,7 @@ This command will build Docker images for l2sm-switch, l2sm-controller, and l2sm ...@@ -23,7 +23,7 @@ This command will build Docker images for l2sm-switch, l2sm-controller, and l2sm
### 2. Push Images: ### 2. Push Images:
```bash ```bash
./build/build_and_push_images.sh push ./build/build_images.sh push
``` ```
This command will push previously built Docker images to the specified DockerHub repository. This command will push previously built Docker images to the specified DockerHub repository.
...@@ -31,7 +31,7 @@ This command will push previously built Docker images to the specified DockerHub ...@@ -31,7 +31,7 @@ This command will push previously built Docker images to the specified DockerHub
### 3. Build and Push Images: ### 3. Build and Push Images:
```bash ```bash
./build/build_and_push_images.sh build_push ./build/build_images.sh build_push
``` ```
This command will both build and push Docker images. This command will both build and push Docker images.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -e set -e
# Set environment variables # Set environment variables
export VERSION="2.2" export VERSION="2.3"
export DOCKERHUB_REPO="alexdecb" export DOCKERHUB_REPO="alexdecb"
# Function to build image # Function to build image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment