-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated container example for dynamic user
Co-authored-by: Patrik Åkesson <[email protected]> Co-authored-by: pataxis <[email protected]>
- Loading branch information
1 parent
1e4586a
commit c51f116
Showing
10 changed files
with
101 additions
and
76 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,7 +1 @@ | ||
*.eap | ||
*_LICENSE.txt | ||
param.conf | ||
package.conf* | ||
build.sh | ||
copy-from-container.sh | ||
alpine.tar |
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,12 +1,22 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG ARCH=armv7hf | ||
ARG VERSION=1.13 | ||
ARG VERSION=1.14_rc3 | ||
ARG UBUNTU_VERSION=22.04 | ||
ARG REPO=axisecp | ||
|
||
FROM ${REPO}/acap-native-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} | ||
FROM ${REPO}/acap-native-sdk:${VERSION}-${ARCH}-ubuntu${UBUNTU_VERSION} AS build | ||
ARG ARCH | ||
COPY ./* /opt/app/ | ||
COPY ./config/env.${ARCH} /opt/app/env.config | ||
|
||
WORKDIR /opt/app | ||
RUN . /opt/axis/acapsdk/environment-setup* && \ | ||
acap-build -a alpine.tar -a docker-compose.yml -a env.config . | ||
RUN <<EOF | ||
. /opt/axis/acapsdk/environment-setup* | ||
acap-build . \ | ||
-a alpine.tar \ | ||
-a docker-compose.yml | ||
EOF | ||
|
||
FROM scratch AS binaries | ||
|
||
COPY --from=build /opt/app/*.eap / |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: "3.3" | ||
services: | ||
alpine: | ||
image: "${ALPINE_IMAGE}" | ||
image: alpine:3.19.1 | ||
command: sh -c "while true ; do printf 'HTTP/1.1 200 OK\\n\\nHello from an ACAP\!' | nc -l -p 80 ; done" | ||
ports: | ||
- 8080:80 |
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,2 +1,2 @@ | ||
#!/bin/sh | ||
docker image rm arm32v7/alpine:3.14.0 | ||
docker image rm alpine:3.19.1 |