diff options
author | Pavel Kotucek <pavel.kotucek@pantheon.tech> | 2019-04-29 15:58:24 +0200 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2019-05-15 00:40:40 +0000 |
commit | 6f6ea23e7114520fe25245effd4120294841f3a2 (patch) | |
tree | 7de83ff92c0dc9df0cf39e397ea28c7997b9c215 /build-root/scripts/docker.sh | |
parent | 28bb25aee9898b50468233e896aab018e68bf787 (diff) |
Docker build improvements
Added small changes to create dev docker image.
Fixed checkstyle.
Change-Id: I0ea1a0bad114578903073526fa12b84702072e3a
Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
Diffstat (limited to 'build-root/scripts/docker.sh')
-rwxr-xr-x | build-root/scripts/docker.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/build-root/scripts/docker.sh b/build-root/scripts/docker.sh deleted file mode 100755 index dce238a..0000000 --- a/build-root/scripts/docker.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2019 PANTHEON.tech. -# -# 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. - - -IMAGE="sweetcomb_img" -CONTAINER="sweetcomb" - -# rebuild env if neccessary -echo "Remove previous container and image" -docker rm ${CONTAINER} -f -docker rmi ${IMAGE} -f - -echo "Rebuild image and start container" -docker build -t ${IMAGE} . -docker run -id --privileged --name ${CONTAINER} ${IMAGE}
\ No newline at end of file |