Skip to content

Commit

Permalink
Merge pull request #241 from pawelmalak/feature
Browse files Browse the repository at this point in the history
Version 2.1.1
  • Loading branch information
pawelmalak authored Dec 2, 2021
2 parents 2ca90a1 + bc077b6 commit b08181e
Show file tree
Hide file tree
Showing 24 changed files with 26,294 additions and 256 deletions.
4 changes: 2 additions & 2 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14 as builder
FROM node:16 as builder

WORKDIR /app

Expand All @@ -16,7 +16,7 @@ RUN mkdir -p ./public ./data \
&& mv ./client/build/* ./public \
&& rm -rf ./client

FROM node:14-alpine
FROM node:16-alpine

COPY --from=builder /app /app

Expand Down
6 changes: 3 additions & 3 deletions .docker/Dockerfile.multiarch
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:14-alpine3.11 as builder
FROM node:16-alpine3.11 as builder

WORKDIR /app

COPY package*.json ./

RUN apk --no-cache --virtual build-dependencies add python make g++ \
RUN apk --no-cache --virtual build-dependencies add python python3 make g++ \
&& npm install --production

COPY . .
Expand All @@ -17,7 +17,7 @@ RUN mkdir -p ./public ./data \
&& mv ./client/build/* ./public \
&& rm -rf ./client

FROM node:14-alpine3.11
FROM node:16-alpine3.11

COPY --from=builder /app /app

Expand Down
14 changes: 12 additions & 2 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
version: '3'
version: '3.6'

services:
flame:
image: pawelmalak/flame
container_name: flame
volumes:
- /path/to/data:/app/data
- /path/to/host/data:/app/data
# - /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration
ports:
- 5005:5005
# secrets:
# - password # optional but required for (1)
environment:
- PASSWORD=flame_password
# - PASSWORD_FILE=/run/secrets/password # optional but required for (1)
restart: unless-stopped

# optional but required for Docker secrets (1)
# secrets:
# password:
# file: /path/to/secrets/password
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORT=5005
NODE_ENV=development
VERSION=2.1.0
VERSION=2.1.1
PASSWORD=flame_password
SECRET=e02eb43d69953658c6d07311d6313f2d4467672cb881f96b29368ba1f3f4da4b
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.md
*.md
docker-compose.yml
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v2.1.1 (2021-12-02)
- Added support for Docker secrets ([#189](https://github.com/pawelmalak/flame/issues/189))
- Changed some messages and buttons to make it easier to open bookmarks editor ([#239](https://github.com/pawelmalak/flame/issues/239))

### v2.1.0 (2021-11-26)
- Added option to set custom order for bookmarks ([#43](https://github.com/pawelmalak/flame/issues/43)) and ([#187](https://github.com/pawelmalak/flame/issues/187))
- Added support for .ico files for custom icons ([#209](https://github.com/pawelmalak/flame/issues/209))
Expand Down
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,42 @@ docker buildx build \
#### Docker-Compose

```yaml
version: '2.1'
version: '3.6'

services:
flame:
image: pawelmalak/flame:latest
image: pawelmalak/flame
container_name: flame
volumes:
- <host_dir>:/app/data
- /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration feature
- /path/to/host/data:/app/data
- /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration
ports:
- 5005:5005
secrets:
- password # optional but required for (1)
environment:
- PASSWORD=flame_password
- PASSWORD_FILE=/run/secrets/password # optional but required for (1)
restart: unless-stopped

# optional but required for Docker secrets (1)
secrets:
password:
file: /path/to/secrets/password
```
##### Docker Secrets
All environment variables can be overwritten by appending `_FILE` to the variable value. For example, you can use `PASSWORD_FILE` to pass through a docker secret instead of `PASSWORD`. If both `PASSWORD` and `PASSWORD_FILE` are set, the docker secret will take precedent.

```bash
# ./secrets/flame_password
my_custom_secret_password_123
# ./docker-compose.yml
secrets:
password:
file: ./secrets/flame_password
```

#### Skaffold
Expand Down Expand Up @@ -212,7 +235,7 @@ metadata:
- Backup your `db.sqlite` before running script!
- Known Issues:
- generated icons are sometimes incorrect

```bash
pip3 install Pillow, beautifulsoup4
Expand Down
2 changes: 1 addition & 1 deletion client/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_VERSION=2.1.0
REACT_APP_VERSION=2.1.1
Loading

0 comments on commit b08181e

Please sign in to comment.