forked from apache/openserverless-streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added Dockerfile and missing required Apache LICENSE, NOTICE, DI…
…SCLAIMER
- Loading branch information
1 parent
8226eb5
commit 57bb5f5
Showing
18 changed files
with
670 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# 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. | ||
# | ||
# Copyright 2021 Nuvolaris LLC | ||
# | ||
# 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. | ||
|
||
name: Build OpenServerless Streamer | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]*' | ||
branches-ignore: | ||
- '*' | ||
jobs: | ||
image: | ||
name: Build OpenServerless Streamer Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Remove unnecessary files | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: License | ||
uses: apache/skywalking-eyes@main | ||
- name: Assign TAG from pull request | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: | | ||
echo "IMG_TAG=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV" | ||
- name: Assign TAG from push | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: | | ||
echo "IMG_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Image | ||
run: task buildx-and-push TAG="$IMG_TAG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# 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. | ||
|
||
# Mac | ||
.DS_Store | ||
|
||
# goenv | ||
.go-version | ||
|
||
# Gradle | ||
.gradle/ | ||
.gogradle/ | ||
*.log | ||
tests/build/ | ||
test.out | ||
|
||
# Dependencies | ||
vendor/ | ||
virtulenv/ | ||
node_modules/ | ||
|
||
# Go binary proxy | ||
proxy | ||
proxy-experimental | ||
actionloop/proxy | ||
golang1.19/proxy | ||
golang1.20/proxy | ||
golang1.21/proxy | ||
golang1.22/proxy | ||
|
||
# Go test transient files | ||
openwhisk/_test/exec | ||
openwhisk/_test/exec.go | ||
openwhisk/_test/hi | ||
openwhisk/_test/hello_greeting | ||
openwhisk/_test/hello_message | ||
openwhisk/_test/*.zip | ||
openwhisk/_test/*.jar | ||
openwhisk/_test/compile/ | ||
openwhisk/_test/output/ | ||
openwhisk/_test/venv/ | ||
openwhisk/action/ | ||
openwhisk/compile/ | ||
openwhisk/debug.test | ||
*.pyc | ||
*.env | ||
|
||
# Eclipse | ||
tests/bin/ | ||
**/.project | ||
.settings/ | ||
.classpath | ||
.cache-main | ||
.cache-tests | ||
|
||
# IntelliJ | ||
.idea | ||
*.class | ||
*.iml | ||
tests/out/ | ||
|
||
# VSCode | ||
.vscode | ||
|
||
# examples | ||
exec | ||
*.done | ||
*.zip | ||
*_launcher_.go | ||
test.json | ||
pkg/ | ||
|
||
# etc | ||
.git-hooks/ | ||
.vscode/ | ||
.task | ||
.env | ||
.env | ||
.env.nuv | ||
.env.src | ||
.param.json | ||
|
||
openserverless-runtimes | ||
|
||
runtimes.json | ||
action/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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. | ||
# | ||
header: | ||
license: | ||
spdx-id: Apache-2.0 | ||
copyright-owner: Apache Software Foundation | ||
|
||
paths-ignore: | ||
- '**/*.sample' | ||
- 'env.src' | ||
- '.git-hooks/pre-commit' | ||
- '**/_*' | ||
- 'nuvroot.json' | ||
- 'LICENSE' | ||
- 'NOTICE' | ||
- 'DISCLAIMER' | ||
- 'cert-manager.yaml' | ||
- 'ingress-deploy.yaml' | ||
- 'runtimes.json' | ||
- '**/*.json' | ||
- '**/*.service' | ||
- 'update/update.ps1' | ||
- '**/mime.types' | ||
- '**/*.txt' | ||
- '.env.src' | ||
- 'go.sum' | ||
- 'go.mod' | ||
- 'openwhisk/_test/**' | ||
- '.gitattributes' | ||
- '.env.dist' | ||
- '**/.npmrc' | ||
- 'customkitd.toml' | ||
- 'runtimes.json' | ||
- 'runtimes.json.tpl' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Apache OpenServerless (Incubating) is an effort undergoing incubation at the Apache | ||
Software Foundation (ASF), sponsored by the Apache Incubator PMC. | ||
|
||
Incubation is required of all newly accepted projects until a further review | ||
indicates that the infrastructure, communications, and decision making process | ||
have stabilized in a manner consistent with other successful ASF projects. | ||
|
||
While incubation status is not necessarily a reflection of the completeness | ||
or stability of the code, it does indicate that the project has yet to be | ||
fully endorsed by the ASF. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# 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. | ||
# | ||
|
||
# Do not fix the patch level for golang:1.23 to automatically get security fixes. | ||
FROM golang:1.23 AS builder | ||
ADD src /src | ||
WORKDIR /src | ||
RUN go build -o /bin/streamer | ||
|
||
FROM golang:1.23 | ||
COPY --from=builder /bin/streamer /streamer | ||
CMD ["/streamer"] |
Oops, something went wrong.