GithubHelp home page GithubHelp logo

isabella232 / flat-manager-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elementary/flat-manager-docker

0.0 0.0 0.0 27 KB

Flat Manager Docker Image

License: GNU General Public License v3.0

Shell 20.94% Dockerfile 79.06%

flat-manager-docker's Introduction

flat-manager-docker

Flat Manager Docker Image




This repository contains the source for the docker container used to manage the elementary flatpak repository. It uses flat-manager for the API, but also includes modifications to make it optimal for running in kubernetes, and mount an S3 endpoint for file storage.

Most of this work is based of this WIP PR. Once that is merged, this repository will go down in size a lot.

Images

  • flat-manager - This is the Rust flat-manager command

Configuration

You will want to make a custom flat-manager configuration at place it at /var/run/flat-manager/config.json. Here is the example config:

{
    "repos": {
        "stable": {
            "path": "repo",
            "collection-id": "org.test.Stable",
            "suggested-repo-name": "testrepo",
            "runtime-repo-url": "https://dl.flathub.org/repo/flathub.flatpakrepo",
            "gpg-key": null,
            "base-url": null,
            "subsets": {
                "all": {
                    "collection-id": "org.test.Stable",
                    "base-url": null
                },
                "free": {
                    "collection-id": "org.test.Stable.test",
                    "base-url": null
                }
            }
        },
        "beta": {
            "path": "beta-repo",
            "collection-id": "org.test.Beta",
            "suggested-repo-name": "testrepo-beta",
            "runtime-repo-url": "https://dl.flathub.org/repo/flathub.flatpakrepo",
            "gpg-key": null,
            "subsets": {
                "all": {
                    "collection-id": "org.test.Beta",
                    "base-url": null
                },
                "free": {
                    "collection-id": "org.test.Beta.test",
                    "base-url": null
                }
            }
        }
    },
    "port": 8080,
    "delay-update-secs": 10,
    "database-url": "postgres://%2Fvar%2Frun%2Fpostgresql/repo",
    "build-repo-base": "build-repo",
    "build-gpg-key": null,
    "gpg-homedir": null,
    "secret": "c2VjcmV0"
}

S3 Repository

You can also mount an S3 location in the container to statically host the repository. Warning this comes with a lot of warnings and can possibly break at any time. Use at your own risk. goofys and catfs are installed by default in the flat-manager image.

NOTE You will also need to run the container with --privileged or you will end up getting an error like so

fuse: device not found, try 'modprobe fuse' first

To do this, simply add a script file at /var/run/flat-manager/startup.sh. This file will be ran on container startup. For instance:

export AWSACCESSKEYID="aws access key"
export AWSSECRETACCESSKEY="aws secret key"

mkdir -p "$HOME/repository"

/usr/bin/goofys flatpak-repository "$HOME/repository"

flat-manager-docker's People

Contributors

btkostner avatar kgrubb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.