Skip to content

Commit

Permalink
Docker: Added runtime_start.sh and runtime_into.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
storypku committed Feb 5, 2021
1 parent cfe9b3c commit f18b9fe
Show file tree
Hide file tree
Showing 2 changed files with 462 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker/scripts/runtime_into.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
###############################################################################
# Copyright 2021 The Apollo Authors. All Rights Reserved.
#
# 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.
###############################################################################

DOCKER_USER="${USER}"
RUNTIME_CONTAINER="apollo_runtime_${USER}"

xhost +local:root 1>/dev/null 2>&1

docker exec -u "${DOCKER_USER}" \
-it "${RUNTIME_CONTAINER}" \
/bin/bash

xhost -local:root 1>/dev/null 2>&1
Loading

0 comments on commit f18b9fe

Please sign in to comment.