Daniel García
dbc082dc75
Update web vault to 2.16.0 and dependencies
4 years ago
Jeremy Lin
6b5fa201aa
Fix the Alpine build
4 years ago
Daniel García
4c324e1160
Change Dockerfiles to make the AMD image multidb
4 years ago
Jeremy Lin
4559e85daa
Multi-arch image support
4 years ago
Jeremy Lin
bbef332e25
Dockerfile.j2: remove dead code
4 years ago
Jeremy Lin
d5f9b33f66
Add startup script to support init operations
...
This is useful for making local customizations upon container start. To use
this feature, mount a script into the container as `/etc/bitwarden_rs.sh`
and/or a directory of scripts as `/etc/bitwarden_rs.d`. In the latter case,
only files with an `.sh` extension are sourced, so files with other
extensions (e.g., data/config files) can reside in the same dir.
Note that the init scripts are run each time the container starts (not just
the first time), so these scripts should be idempotent.
4 years ago
Daniel García
d4357eb55a
Updated dependencies ans web vault version
5 years ago
Daniel García
a1f304dff7
Update web vault to v2.14.0
5 years ago
Daniel García
4be8dae626
Make web vault show a more informative error when browsers block WebCrypto in insecure contexts and update dependencies
5 years ago
Daniel García
5471088e93
Merge pull request #933 from jjlin/dockerfiles
...
Rebuild Dockerfiles to match latest Dockerfile.j2 template
5 years ago
Daniel García
4e85a1dee1
Update web vault to 2.13.2
5 years ago
Jeremy Lin
d4bfa1a189
Rebuild Dockerfiles to match latest Dockerfile.j2 template
...
Picks up a couple of missed changes from b837348b
and ccf6ee79
.
5 years ago
Jeremy Lin
bbb0484d03
Healthcheck fixes/optimizations
...
* Switch healthcheck interval/timeout from 30s/3s to 60s/10s.
30s interval is arguably overkill, and 3s timeout is definitely too short
for lower end machines.
* Use HEALTHCHECK CMD exec form to avoid superfluous `sh` invocations.
* Add `--silent --show-error` flags to curl call to avoid progress meter being
shown in healthcheck logs.
5 years ago
Jeremy Lin
fdf50f0064
Update healthcheck script to handle alternate base dir
5 years ago
Ymage
b837348b25
Build as static
5 years ago
Daniel García
edabf19ddf
Update vault to 2.13.1
5 years ago
Daniel García
b6612e90ca
Update dependencies
5 years ago
Daniel García
edfdda86ae
Use web vault built by docker autobuild, using the hash to reference the image for extra security
5 years ago
Daniel García
0a3008e753
Update web vault used in docker
5 years ago
Daniel García
916e96b143
Update web vault to fix copy issues
5 years ago
Daniel García
84ed185579
Update u2f to 0.2, which requires OpenSSL but also might solve the problems we've had with certificates.
...
The rust image doesn't need installing curl or tar, so removed. Also collapsed ENV lines.
5 years ago
Daniel García
a3b30ed65a
Add missing target armv7 and cross compile envs
5 years ago
Robin Schneider
402c857d17
Add hint to Dockerfile's that they are generated
5 years ago
Robin Schneider
def858854b
Readd missing cargo build for armv7. Thanks to @dani-garcia!
5 years ago
Robin Schneider
f6761ac30e
Remove debugging echo statement from Dockerfiles
5 years ago
Robin Schneider
f8e49ea3f4
Use apt-get instead of apt in Dockerfiles, also --no-install-recommends
...
apt is intended for humans, not scripts.
--no-install-recommends improves build time by avoiding to install
unneeded packages.
5 years ago
Robin Schneider
f6a4a2127b
Remove duplicate empty lines in generated Dockerfiles
...
Checked with:
```Shell
find . -type f -print0 | xargs -0 pcregrep -M '\n\n\n'
```
5 years ago
Robin Schneider
446fc3f1f8
Set build time options for dpkg and reproducible builds
...
Ref: https://github.com/moby/moby/issues/4032
Ref: https://sweetcode.io/using-docker-reproducible-build-environments/
Ref: https://github.com/hashbang/aosp-build/blob/master/config/container/Dockerfile
5 years ago
Robin Schneider
146525db91
Improve Jinja2 template logic a bit
5 years ago
Robin Schneider
1698b43f9b
Readd missing cargo setup for armv7. Thanks to @dani-garcia!
5 years ago
Robin Schneider
078b21db85
Fix armv6 build, thanks to @dani-garcia for the review!
5 years ago
Robin Schneider
43adcde094
Move `rustup target` before `cargo build`. Thanks to @dani-garcia!
...
Note from @dani-garcia:
> I don't think this is doing anything right now because the target is probably
> installed already.
5 years ago
Daniel García
7a0bb18dcf
Make `cargo new` independent of workdir to be exact
...
The muslrust images seem to have a workdir of /volume as opposed to / in the
others so doing cargo new like this would create the folder in /volume/app.
5 years ago
Robin Schneider
47a5a4e1fc
Fix package name for Ubuntu 16.04 based image. Thanks @dani-garcia!
5 years ago
Robin Schneider
0f0e5876ae
Move `dpkg --add-architecture` before the first apt call
...
Thanks to @dani-garcia for the review!
5 years ago
Robin Schneider
43aa75dc89
Fix cross platform build support, thanks to @dani-garcia for the review
5 years ago
Robin Schneider
8280d200ea
Generate Dockerfiles from one source for maintainability. Closes #785 .
5 years ago
Robin Schneider
f250c54813
WIP: Use Debian base image for all steps of the build process
...
No need to use two different base images. Debian buster is pulled later
anyway so we can just use it for the vault stage as well.
My reason for this change is partly to avoid redundancy and partly to
make it easier to build everything yourself. When all the build
environment is based on Debian than you just have to figure out how to
build a Debian Docker base image (ref:
https://github.com/ypid/docker-makefile ).
5 years ago
Daniel García
4cec502f7b
Update docker images to alpine 3.11 and rust 1.40
5 years ago
Daniel García
cf5a985b31
Updated rust images and enabled minimal profile
5 years ago
Daniel García
cbadf00941
Update web vault to fix twofactorauth.org integration
...
Update dependencies and toolchain
Update included equivalent domains with upstream changes
5 years ago
Gernot Nusshall
748c825202
cleaner startup exec in order to build the image and run the container with podman/libpod
5 years ago
Gernot Nusshall
204993568a
cleaner startup exec in order to build the image and run the container with podman/libpod
5 years ago
Gernot Nusshall
70be2d93ce
cleaner startup exec in order to build the image and run the container with podman/libpod
5 years ago
Patrick Li
efc65b93f8
Don't install mysql libraries for sqlite builds
5 years ago
Daniel García
97d41c2686
Revert rustup minimal profile, rustup can't be updated
5 years ago
Daniel García
fccc0a4b05
Update rocket to latest master
...
Downgrade rust version to fix cargo issue
Set rustup profile to minimal
5 years ago
Daniel García
57b1d3f850
Update dependencies and docker base images
5 years ago
Miro Prasil
acdd42935b
Add sqlite binary into the docker images
...
This is done to enable backup functionality in the admin interface while
we're waiting for the libsqlite-sys 0.17 to bubble up in the upstream
dependencies. Then we can start using `VACUUM INTO`
This also extends the check for the sqlite binary to also try `sqlite3`
as this is the name of the binary in baseimage distributions we use.
5 years ago
Michael Powers
f5f9861a78
Adds support for PostgreSQL which resolves #87 and is mentioned in #246 .
...
This includes migrations as well as Dockerfile's for amd64.
The biggest change is that replace_into isn't supported by Diesel for the
PostgreSQL backend, instead requiring the use of on_conflict. This
unfortunately requires a branch for save() on all of the models currently
using replace_into.
5 years ago
Daniel García
f9408a00c6
Allow self signed certs and increase a bit the timings
5 years ago
Daniel García
ae8bf954c1
Updated web vault to 2.12
5 years ago
Miro Prasil
eea3f13bb3
Fix #603 and remove mysql from sqlite image
...
This changes the healthcheck to use `sh` instead of bash, that is absent
from some image versions. (like alpine)
It also removes `*mariadb*` packages from runtime image of sqlite images
as these shouldn't be required.
5 years ago
Daniel García
dda244edd8
Merge pull request #589 from H3npi/H3npi-patch-1
...
Adds Healthcheck for default docker container
5 years ago
H3npi
cce3ce816c
Adds environment port to curl healthcheck
5 years ago
H3npi
66a68f6d22
Adds Healthcheck for all docker container
5 years ago
Daniel García
469318bcbd
Updated dependencies and web vault version
5 years ago
Daniel García
8be2ed6255
Update web vault to 2.11.0
5 years ago
Daniel García
05a1137828
Move backend checks to build.rs to fail fast, and updated dependencies
6 years ago
Felix Bartels
0b13a8c4aa
last round of linting fixes
...
Signed-off-by: Felix Bartels <felix@host-consultants.de>
6 years ago
Felix Bartels
3fbd7919d8
more linting fixes
...
Signed-off-by: Felix Bartels <felix@host-consultants.de>
6 years ago
Felix Bartels
5f688ff209
no more linting errors for the main Dockerfile
...
Signed-off-by: Felix Bartels <felix@host-consultants.de>
6 years ago
Miro Prasil
d10ef3fd4b
Create Dockerfiles for mysql builds
6 years ago
Miro Prasil
dd0b847912
Move current dockerfiles to their arch folders
6 years ago
Daniel García
9a8cae836b
Remove vault patch file, and point users to the vault builds repo for the patch
6 years ago
Daniel García
adf40291e8
Update web vault to 2.4.0
6 years ago
Daniel García
6660b0aef3
Updated web vault to version 2.2
6 years ago
Miroslav Prasil
5ecafb157d
Disable analytics via patch to Vault
6 years ago
Miroslav Prasil
039860f87e
Fix patch file for v2.1.1
6 years ago
Daniel García
a291dea16f
Updated dependencies and Docker image to new web-vault
6 years ago
Miroslav Prasil
f00732ddc5
Move settings out of web-vault
7 years ago