You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "mrproliu (via GitHub)" <gi...@apache.org> on 2023/07/23 14:12:08 UTC
[GitHub] [skywalking-go] mrproliu opened a new pull request, #82: Support using base docker image to building the application
mrproliu opened a new pull request, #82:
URL: https://github.com/apache/skywalking-go/pull/82
(no comment)
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-go] jcchavezs commented on a diff in pull request #82: Support using base docker image to building the application
Posted by "jcchavezs (via GitHub)" <gi...@apache.org>.
jcchavezs commented on code in PR #82:
URL: https://github.com/apache/skywalking-go/pull/82#discussion_r1271539880
##########
Dockerfile:
##########
@@ -0,0 +1,31 @@
+# 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.
+
+# User used targeting base image
+ARG BASE_GO_IMAGE
+# Build the agent base image
+ARG BASE_BUILDER_IMAGE='golang:1.18'
+
+FROM ${BASE_BUILDER_IMAGE} as builder
+# Go Agent Version
+ARG VERSION
+WORKDIR /skywalking-go
+COPY . .
+RUN VERSION=$VERSION make -C tools/go-agent linux
+
+FROM ${BASE_GO_IMAGE}
Review Comment:
I am missing a couple of things here:
1. User
2. labels for referencing the repository e.g. opencontainers labels.
3. More documentation about what a BASE_GO_IMAGE is and where is it supposed to have the go bin or mimimun version.
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-go] jcchavezs commented on a diff in pull request #82: Support using base docker image to building the application
Posted by "jcchavezs (via GitHub)" <gi...@apache.org>.
jcchavezs commented on code in PR #82:
URL: https://github.com/apache/skywalking-go/pull/82#discussion_r1281637909
##########
Dockerfile:
##########
@@ -0,0 +1,31 @@
+# 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.
+
+# User used targeting base image
+ARG BASE_GO_IMAGE
+# Build the agent base image
+ARG BASE_BUILDER_IMAGE='golang:1.18'
+
+FROM ${BASE_BUILDER_IMAGE} as builder
+# Go Agent Version
+ARG VERSION
+WORKDIR /skywalking-go
+COPY . .
+RUN VERSION=$VERSION make -C tools/go-agent linux
+
+FROM ${BASE_GO_IMAGE}
Review Comment:
> Currently, it will be used in the skywalking showcase to prevent manual downloading of the latest project and repeating the build process.
I meant the linux user, to avoid ROOT access in host.
> Do you mean tags? It has been defined [in the Makefile](https://github.com/apache/skywalking-go/pull/82/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R124).
I meant this set of annotations https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
> For now, the documentation is more to declare how to use it. The support go version list has been [documented there](https://github.com/apache/skywalking-go/pull/82/files#diff-587e31dd45aa2559ac2b70b2174858a872f7e5565036cfdbf6dceb4afe9bbfc6R26).
Still unclear, what exactly this image could be? `golang:1.20`? `golang:alpine`?
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-go] wu-sheng commented on a diff in pull request #82: Support using base docker image to building the application
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on code in PR #82:
URL: https://github.com/apache/skywalking-go/pull/82#discussion_r1271464295
##########
docs/menu.yml:
##########
@@ -24,7 +24,12 @@ catalog:
- name: Project Structure
path: /en/concepts-and-designs/project-structure
- name: Setup
- path: /en/setup/gobuild
+ catalog:
+ - name: VM
Review Comment:
```suggestion
- name: Quick Start
```
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-go] mrproliu commented on a diff in pull request #82: Support using base docker image to building the application
Posted by "mrproliu (via GitHub)" <gi...@apache.org>.
mrproliu commented on code in PR #82:
URL: https://github.com/apache/skywalking-go/pull/82#discussion_r1271627750
##########
Dockerfile:
##########
@@ -0,0 +1,31 @@
+# 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.
+
+# User used targeting base image
+ARG BASE_GO_IMAGE
+# Build the agent base image
+ARG BASE_BUILDER_IMAGE='golang:1.18'
+
+FROM ${BASE_BUILDER_IMAGE} as builder
+# Go Agent Version
+ARG VERSION
+WORKDIR /skywalking-go
+COPY . .
+RUN VERSION=$VERSION make -C tools/go-agent linux
+
+FROM ${BASE_GO_IMAGE}
Review Comment:
> User
Currently, it will be used in the skywalking showcase to prevent manual downloading of the latest project and repeating the build process.
> labels for referencing the repository e.g. opencontainers labels.
Do you mean tags? It has been defined [in the Makefile](https://github.com/apache/skywalking-go/pull/82/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R124).
> More documentation about what a BASE_GO_IMAGE is and where is it supposed to have the go bin or mimimun version.
For now, the documentation is more to declare how to use it. The support go version list has been [documented there](https://github.com/apache/skywalking-go/pull/82/files#diff-587e31dd45aa2559ac2b70b2174858a872f7e5565036cfdbf6dceb4afe9bbfc6R26).
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-go] wu-sheng merged pull request #82: Support using base docker image to building the application
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng merged PR #82:
URL: https://github.com/apache/skywalking-go/pull/82
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking-go] jcchavezs commented on a diff in pull request #82: Support using base docker image to building the application
Posted by "jcchavezs (via GitHub)" <gi...@apache.org>.
jcchavezs commented on code in PR #82:
URL: https://github.com/apache/skywalking-go/pull/82#discussion_r1281637909
##########
Dockerfile:
##########
@@ -0,0 +1,31 @@
+# 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.
+
+# User used targeting base image
+ARG BASE_GO_IMAGE
+# Build the agent base image
+ARG BASE_BUILDER_IMAGE='golang:1.18'
+
+FROM ${BASE_BUILDER_IMAGE} as builder
+# Go Agent Version
+ARG VERSION
+WORKDIR /skywalking-go
+COPY . .
+RUN VERSION=$VERSION make -C tools/go-agent linux
+
+FROM ${BASE_GO_IMAGE}
Review Comment:
I meant this set of annotations https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org