[ 
https://issues.apache.org/jira/browse/BEAM-12812?focusedWorklogId=713662&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-713662
 ]

ASF GitHub Bot logged work on BEAM-12812:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Jan/22 11:01
            Start Date: 24/Jan/22 11:01
    Worklog Time Spent: 10m 
      Work Description: ashb commented on a change in pull request #16511:
URL: https://github.com/apache/beam/pull/16511#discussion_r790630802



##########
File path: 
.github/dockerized-gh-actions-runners/self-hosted-linux/docker/entrypoint.sh
##########
@@ -0,0 +1,46 @@
+#!/usr/bin/env bash
+
+# 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.
+
+sudo chmod 666 /var/run/docker.sock
+
+registration_url="https://api.github.com/repos/$GITHUB_REPO/beam/actions/runners/registration-token";
+echo "Requesting registration URL at '${registration_url}'"
+GITHUB_TOKEN=$(echo $GITHUB_TOKEN) #scaping GITHUB_TOKEN variable
+payload=$(curl -sX POST -H "Authorization: token $GITHUB_TOKEN" 
${registration_url})
+RUNNER_TOKEN=$(echo $payload | jq '.token' --raw-output)

Review comment:
       (I would _love_ to be wrong on this, as if we can do this it's so much 
simpler.)




-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 713662)
    Time Spent: 3h 50m  (was: 3h 40m)

> Run Github Actions on GCP workers in the apache-beam-testing project
> --------------------------------------------------------------------
>
>                 Key: BEAM-12812
>                 URL: https://issues.apache.org/jira/browse/BEAM-12812
>             Project: Beam
>          Issue Type: Task
>          Components: build-system
>            Reporter: Kiley Sok
>            Assignee: Daniela Martín
>            Priority: P2
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> Objective: migrate the runners of the GitHub CI/CD pipeline (GitHub Actions 
> or GAs) over to the Apache Beam GCP infrastructure; GKE in this case.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to