-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild-deploy-local.sh
executable file
·35 lines (29 loc) · 1.41 KB
/
build-deploy-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Removing Existing Local Development Containers
docker container rm -f shifter_ui_development
docker container rm -f shifter_server_development
docker container prune -f
# Removing Existing Local Development Images
docker image rm --force local.images.shifter.cloud/shifter-ui:latest
docker image rm --force local.images.shifter.cloud/shifter:latest
docker image prune -f
# Remove Docker Network
docker network rm shifter-network
docker network create shifter-network
# Building Local Development Images for Shifter UI and Shifter Server
docker build --no-cache -t local.images.shifter.cloud/shifter-ui:latest -f "./shifter-ui/Dockerfile" ./shifter-ui/
docker build --no-cache -t local.images.shifter.cloud/shifter:latest -f "./shifter/Dockerfile" ./shifter/
# Docker Compose Up - Run It!
docker-compose -f docker-compose-development.yml up --force-recreate