mirror of
https://github.com/kerberos-io/base.git
synced 2025-10-07 00:43:38 +08:00
just a test to make it run quicker
This commit is contained in:
15
.github/workflows/amd64.yaml
vendored
15
.github/workflows/amd64.yaml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: false
|
||||
tags: kerberos/base:beta
|
||||
tags: kerberos/base:beta-amd64
|
||||
#- name: Scan
|
||||
# uses: Azure/container-scan@v0
|
||||
# with:
|
||||
@@ -26,4 +26,15 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
tags: kerberos/base:beta
|
||||
tags: kerberos/base:beta-amd64
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v3
|
||||
with:
|
||||
buildx-version: latest
|
||||
qemu-version: latest
|
||||
- name: Available platforms
|
||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||
- name: Merge manifest
|
||||
run: docker buildx imagetools create --append -t kerberos/base:beta kerberos/base:beta-amd64
|
4
.github/workflows/armv7.yaml
vendored
4
.github/workflows/armv7.yaml
vendored
@@ -24,4 +24,6 @@ jobs:
|
||||
- name: Available platforms
|
||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||
- name: Run Buildx
|
||||
run: docker buildx build --platform linux/arm/v7 -t kerberos/base:beta --push .
|
||||
run: docker buildx build --platform linux/arm/v7 -t kerberos/base:beta-armv7 --push .
|
||||
- name: Merge manifest
|
||||
run: docker buildx imagetools create --append -t kerberos/base:beta kerberos/base:beta-armv7
|
40
Dockerfile
40
Dockerfile
@@ -3,43 +3,3 @@ LABEL Author=Kerberos.io
|
||||
|
||||
RUN apt-get update && apt-get install -y wget build-essential \
|
||||
cmake libc-ares-dev uuid-dev daemon libwebsockets-dev
|
||||
|
||||
#################################
|
||||
# Clone and build FFMpeg & OpenCV
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get -y --no-install-recommends install git cmake wget dh-autoreconf autotools-dev autoconf automake gcc build-essential libtool make ca-certificates supervisor nasm zlib1g-dev tar libx264. unzip wget pkg-config libavresample-dev && \
|
||||
git clone https://github.com/FFmpeg/FFmpeg && \
|
||||
cd FFmpeg && git checkout n4.4.1 && \
|
||||
./configure --prefix=/usr/local --target-os=linux --enable-nonfree --enable-avfilter --enable-libx264 --enable-gpl --enable-shared && \
|
||||
make -j8 && \
|
||||
make install && \
|
||||
cd .. && rm -rf FFmpeg
|
||||
|
||||
RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.5.zip && \
|
||||
unzip opencv.zip && mv opencv-4.5.5 opencv && cd opencv && mkdir build && cd build && \
|
||||
cmake -D CMAKE_BUILD_TYPE=RELEASE \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr/ \
|
||||
-D OPENCV_GENERATE_PKGCONFIG=YES \
|
||||
-D BUILD_TESTS=OFF \
|
||||
-D OPENCV_ENABLE_NONFREE=ON \
|
||||
#-D BUILD_opencv_dnn=OFF \
|
||||
-D BUILD_opencv_ml=OFF \
|
||||
-D BUILD_opencv_stitching=OFF \
|
||||
-D BUILD_opencv_ts=OFF \
|
||||
-D BUILD_opencv_java_bindings_generator=OFF \
|
||||
-D BUILD_opencv_python_bindings_generator=OFF \
|
||||
-D INSTALL_PYTHON_EXAMPLES=OFF \
|
||||
-D BUILD_EXAMPLES=OFF .. && make -j8 && make install && cd ../.. && rm -rf opencv*
|
||||
|
||||
############################
|
||||
# Build golang
|
||||
|
||||
ENV GOROOT=/usr/local/go
|
||||
ENV GOPATH=/go
|
||||
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
|
||||
RUN apt-get install -y git
|
||||
RUN ARCH=$([ "$(uname -m)" = "armv7l" ] && echo "armv6l" || echo "amd64") && wget "https://dl.google.com/go/go1.18.linux-$ARCH.tar.gz" && \
|
||||
tar -xvf "go1.18.linux-$ARCH.tar.gz" && \
|
||||
mv go /usr/local
|
||||
|
||||
|
45
Dockerfile-old
Normal file
45
Dockerfile-old
Normal file
@@ -0,0 +1,45 @@
|
||||
FROM debian:bullseye
|
||||
LABEL Author=Kerberos.io
|
||||
|
||||
RUN apt-get update && apt-get install -y wget build-essential \
|
||||
cmake libc-ares-dev uuid-dev daemon libwebsockets-dev
|
||||
|
||||
#################################
|
||||
# Clone and build FFMpeg & OpenCV
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get -y --no-install-recommends install git cmake wget dh-autoreconf autotools-dev autoconf automake gcc build-essential libtool make ca-certificates supervisor nasm zlib1g-dev tar libx264. unzip wget pkg-config libavresample-dev && \
|
||||
git clone https://github.com/FFmpeg/FFmpeg && \
|
||||
cd FFmpeg && git checkout n4.4.1 && \
|
||||
./configure --prefix=/usr/local --target-os=linux --enable-nonfree --enable-avfilter --enable-libx264 --enable-gpl --enable-shared && \
|
||||
make -j8 && \
|
||||
make install && \
|
||||
cd .. && rm -rf FFmpeg
|
||||
|
||||
RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.5.zip && \
|
||||
unzip opencv.zip && mv opencv-4.5.5 opencv && cd opencv && mkdir build && cd build && \
|
||||
cmake -D CMAKE_BUILD_TYPE=RELEASE \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr/ \
|
||||
-D OPENCV_GENERATE_PKGCONFIG=YES \
|
||||
-D BUILD_TESTS=OFF \
|
||||
-D OPENCV_ENABLE_NONFREE=ON \
|
||||
#-D BUILD_opencv_dnn=OFF \
|
||||
-D BUILD_opencv_ml=OFF \
|
||||
-D BUILD_opencv_stitching=OFF \
|
||||
-D BUILD_opencv_ts=OFF \
|
||||
-D BUILD_opencv_java_bindings_generator=OFF \
|
||||
-D BUILD_opencv_python_bindings_generator=OFF \
|
||||
-D INSTALL_PYTHON_EXAMPLES=OFF \
|
||||
-D BUILD_EXAMPLES=OFF .. && make -j8 && make install && cd ../.. && rm -rf opencv*
|
||||
|
||||
############################
|
||||
# Build golang
|
||||
|
||||
ENV GOROOT=/usr/local/go
|
||||
ENV GOPATH=/go
|
||||
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
|
||||
RUN apt-get install -y git
|
||||
RUN ARCH=$([ "$(uname -m)" = "armv7l" ] && echo "armv6l" || echo "amd64") && wget "https://dl.google.com/go/go1.18.linux-$ARCH.tar.gz" && \
|
||||
tar -xvf "go1.18.linux-$ARCH.tar.gz" && \
|
||||
mv go /usr/local
|
||||
|
Reference in New Issue
Block a user