Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

nicholaswilde/docker-haste

Repository files navigation

Docker Haste

No Maintenance Intended Docker Image Version (latest by date) Docker Pulls GitHub ci lint pre-commit

⛔️ DEPRECATED A multi-architecture docker image for Haste pastebin.

This image has been depcrecated. Please use the k8s@home version instead.

Requirements

Usage

docker-compose

---
version: "2.1"
services:
  haste:
    image: nicholaswilde/haste
    container_name: haste
    environment:
      - TZ=America/Los_Angeles #optional
      - PUID=1000   #optional
      - PGID=1000   #optional
    ports:
      - 7777:7777
    restart: unless-stopped
    volumes:
      - app:/app
volumes:
  app:
  config:
  defaults:

docker cli

$ docker run -d \
  --name=haste \
  -e TZ=America/Los_Angeles `# optional` \
  -e PUID=1000  `# optional` \
  -e PGID=1000   `# optional` \
  -p 7777:7777 \
  --restart unless-stopped \
  nicholaswilde/haste

Build

Check that you can build the following:

$ docker buildx ls
NAME/NODE    DRIVER/ENDPOINT             STATUS  PLATFORMS
mybuilder *  docker-container
  mybuilder0 unix:///var/run/docker.sock running linux/amd64, linux/arm64, linux/arm/v7

If you are having trouble building arm images on a x86 machine, see this blog post.

$ make build

Pre-commit hook

If you want to automatically generate README.md files with a pre-commit hook, make sure you install the pre-commit binary, and add a .pre-commit-config.yaml file to your project. Then run:

pre-commit install
pre-commit install-hooks

Currently, this only works on amd64 systems.

License

Apache 2.0 License

Author

This project was started in 2021 by Nicholas Wilde.