MakarkinSAkvelon commented on code in PR #25508:
URL: https://github.com/apache/beam/pull/25508#discussion_r1124958704


##########
playground/backend/containers/mitmproxy/build.gradle:
##########
@@ -0,0 +1,67 @@
+/*
+ * 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.
+ */
+
+
+apply plugin: 'org.apache.beam.module'
+apply plugin: 'base'
+applyDockerNature()
+
+def playgroundJobServerProject = "${project.path.replace('-container', '')}"
+
+description = project(playgroundJobServerProject).description + " :: Container"
+
+configurations {
+  dockerDependency
+}
+
+dependencies {
+  dockerDependency project(path: playgroundJobServerProject, configuration: 
"shadow")
+}
+
+task copyDockerfileDependencies(type: Copy) {
+   copy {
+      from 'entrypoint.sh'
+      into 'build/'
+   }
+   copy {
+      from 'config.yaml'
+      into 'build/'
+   }
+   copy {
+      from '../../../infrastructure/proxy/allow_list.py'
+      into 'build/'
+   }
+   copy {
+      from '../../../infrastructure/proxy/allow_list_proxy.py'
+      into 'build/'
+   }

Review Comment:
   This file is in another directory. And we just copy it to the same directory 
where Dockerfile is. According to the link provided by you, there is a rule:
   
   "COPY obeys the following rules:
   The path must be inside the context of the build; you cannot COPY 
../something /something, because the first step of a docker build is to send 
the context directory (and subdirectories) to the docker daemon.
   
   If is a directory, the entire contents of the directory are copied, 
including filesystem metadata."



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to