blob: 8c8df3c24dda6f3f8863668226473b4fd72dfc32 [file] [log] [blame]
# *****************************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
# ******************************************************************************
FROM docker.datalab-base:latest
ARG OS
COPY project/ /root/
COPY general/scripts/gcp/project_* /root/scripts/
COPY general/scripts/gcp/edge_* /root/scripts/
COPY general/lib/os/${OS}/edge_lib.py /usr/lib/python3.8/datalab/edge_lib.py
COPY general/files/gcp/ps_policy.json /root/files/ps_policy.json
COPY general/files/gcp/ps_roles.json /root/files/ps_roles.json
COPY general/templates/os/manage_step_certs.sh /root/templates/
COPY general/templates/os/step-cert-manager.service /root/templates/
RUN chmod a+x /root/fabfile.py; \
chmod a+x /root/scripts/*