Add ipfs-adapter builtin (#4)

This commit is contained in:
folex 2021-07-01 23:05:56 +03:00 committed by GitHub
parent d3545afa0d
commit ad6b864555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 13 deletions

View File

@ -4,6 +4,9 @@ on:
push: push:
branches: branches:
- main - main
- ipfs-adapter
workflow_dispatch:
jobs: jobs:
build: build:
@ -30,7 +33,7 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
### Build and push docker image ### Build and push docker image
- name: Build and push - name: Build and push
id: docker_build id: docker_build

View File

@ -1,9 +1,9 @@
### NOTE: original linuxserver.org docker-ipfs image also builds & runs migrations. ### NOTE: original linuxserver.org docker-ipfs image also builds & runs migrations.
### If needed, go to https://github.com/linuxserver/docker-ipfs to see how it's done. ### If needed, go to https://github.com/linuxserver/docker-ipfs to see how it's done.
FROM ipfs/go-ipfs:v0.9.0 as ipfs FROM ipfs/go-ipfs:v0.9.0 as ipfs
FROM fluencelabs/fluence:vault as fluence FROM fluencelabs/fluence:latest as fluence
FROM ghcr.io/linuxserver/baseimage-ubuntu:bionic FROM ghcr.io/linuxserver/baseimage-ubuntu:bionic
@ -40,10 +40,12 @@ RUN \
rm -rf \ rm -rf \
/tmp/* \ /tmp/* \
/var/lib/apt/lists/* \ /var/lib/apt/lists/* \
/var/tmp/* /var/tmp/* && \
echo "**** download ipfs-adapter ****" && \
curl https://github.com/fluencelabs/ipfs-adapter/releases/latest/download/ipfs-adapter.tar.gz -L | tar -zxv -C /builtins/
# copy configs # copy configs
# NOTE: copy configs should be after installing packages because # NOTE: copy configs should be after installing packages because
# configs may replace default configs of installed packages # configs may replace default configs of installed packages
COPY s6/root/ / COPY s6/root/ /

View File

@ -19,15 +19,15 @@ services:
- fluence:/.fluence - fluence:/.fluence
networks: networks:
- fluence - fluence
env.json: env.json:
restart: "no" restart: "no"
# depends_on: # depends_on:
# - fluence # - fluence
image: busybox:stable image: busybox:stable
volumes: volumes:
- env.json:/env - env.json:/env
command: command:
- sh - sh
- -c - -c
- | - |
@ -43,16 +43,16 @@ services:
EOF EOF
dashboard: dashboard:
depends_on: depends_on:
- env.json - env.json
image: fluencelabs/dashboard:latest image: fluencelabs/dashboard:latest
volumes: volumes:
- env.json:/dist/env - env.json:/dist/env
networks: networks:
- fluence - fluence
ports: ports:
- 8080:8080 - 8080:8080
volumes: volumes:
fluence: null fluence: null
env.json: null env.json: null