-
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.
- Loading branch information
Showing
7 changed files
with
61 additions
and
167 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "connect" | ||
name = "beam-connect" | ||
version = "0.1.1" | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
|
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,20 @@ | ||
# This assumes binaries are present, see COPY directive. | ||
|
||
ARG IMGNAME=gcr.io/distroless/cc | ||
|
||
FROM alpine AS chmodder | ||
ARG FEATURE | ||
ARG TARGETARCH | ||
ARG COMPONENT=beam-connect | ||
COPY /artifacts/binaries-$TARGETARCH$FEATURE/$COMPONENT /app/$COMPONENT | ||
RUN chmod +x /app/* | ||
|
||
# FROM ${IMGNAME} | ||
FROM ubuntu:latest | ||
RUN apt update | ||
RUN apt install -y ca-certificates | ||
RUN apt install -y ssl-cert | ||
RUN make-ssl-cert generate-default-snakeoil | ||
ARG COMPONENT=beam-connect | ||
COPY --from=chmodder /app/$COMPONENT /usr/local/bin/samply | ||
ENTRYPOINT [ "/usr/local/bin/samply" ] |
This file was deleted.
Oops, something went wrong.
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
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
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 @@ | ||
#!/bin/bash -e | ||
|
||
SD=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd $SD | ||
|
||
case "$1" in | ||
noci) | ||
shift | ||
cd .. | ||
cargo test $@ | ||
;; | ||
ci) | ||
shift | ||
$SD/start ci $@ | ||
for testbin in $SD/../testbinaries/*; do | ||
chmod +x $testbin | ||
$testbin | ||
done | ||
;; | ||
*) | ||
echo "Usage: $0 noci|ci" | ||
exit 1 | ||
;; | ||
esac |