Skip to content

Commit

Permalink
Release 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matze committed Aug 19, 2024
1 parent 6b1c078 commit 8171cee
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 23 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@

## Unreleased


## 2.5.0

**2024-08-19**

### Added

- Possibility to serve from some subdomain via the `WASTEBIN_BASE_URL`
environment variable.
- Possibility to limit maximum paste expiration with the
`WASTEBIN_MAX_PASTE_EXPIRATION` environment variable.
- Open button to read local file into input.

### Changed

- Improve container layout and CSS.


## 2.4.3

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wastebin"
version = "2.4.3"
version = "2.5.0"
edition = "2021"
rust-version = "1.80"

Expand Down
35 changes: 14 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,43 +40,33 @@ contained `wastebin` binary.

### Build a container image

It's possible to build container image using Docker or Podman.

Assuming you're in the root directory of repository:
* Docker
It's possible to build a container image using Docker or Podman. Assuming you're in the root directory of repository run
```bash
$ sudo docker build \
-t wastebin:v2.4.3 \
-f Dockerfile .
$ sudo docker build -t wastebin:v2.4.3 -f Dockerfile .
```
* Podman
for Docker or
```bash
$ podman build \
-t wastebin:v2.4.3 \
-f Dockerfile
$ podman build -t wastebin:v2.4.3 -f Dockerfile
```
for Podman.

To cross-compile, make sure that your container engine of choice supports it,
e.g. Docker:

```bash
$ sudo docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
default* docker
\_ default \_ default running v0.14.1 linux/amd64, linux/amd64/v2, linux/386, linux/arm64, linux/riscv64, linux/ppc64, linux/ppc64le, linux/s390x, linux/mips64le, linux/mips64, linux/loong64, linux/arm/v7, linux/arm/v6
```

To compile arm64 image on x86_64(amd64) host:
* Docker
To build an arm64 image on an x86_64 host run
```bash
$ sudo docker build --platform linux/arm64 \
-t wastebin:v2.4.3-arm64 \
-f Dockerfile.arm .
$ sudo docker build --platform linux/arm64 -t wastebin:v2.4.3-arm64 -f Dockerfile.arm .
```
* Podman
or
```bash
$ podman build --arch=arm64 \
-t wastebin:v2.4.3-arm64 \
-f Dockerfile.arm
$ podman build --arch=arm64 -t wastebin:v2.4.3-arm64 -f Dockerfile.arm
```

### Run a Docker image
Expand All @@ -93,6 +83,7 @@ shell nor with `TMPDIR` being set. If database migrations fail with an extended
sqlite error code 6410, pass `TMPDIR` pointing to a location, sqlite can write
to.


### Run with docker-compose
```
version: '3.3'
Expand All @@ -108,17 +99,19 @@ services:
```
Make sure the `./data` folder is writable by the user 10001.


### Run with Nix

For Nix users, a `flake.nix` is also provided. Build and execute it directly
with:

```sh
```bash
nix run 'github:matze/wastebin#wastebin'
```

Or install the provided `wastebin` package like you normally would.


## Usage

### Browser interface
Expand Down

0 comments on commit 8171cee

Please sign in to comment.