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:
branches:
- main
- ipfs-adapter
workflow_dispatch:
jobs:
build:
@ -30,7 +33,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
### Build and push docker image
- name: Build and push
id: docker_build

View File

@ -1,9 +1,9 @@
### 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.
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
@ -40,10 +40,12 @@ RUN \
rm -rf \
/tmp/* \
/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
# NOTE: copy configs should be after installing packages because
# copy configs
# NOTE: copy configs should be after installing packages because
# configs may replace default configs of installed packages
COPY s6/root/ /

View File

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