Giter Site home page Giter Site logo

Comments (20)

dani-garcia avatar dani-garcia commented on August 27, 2024 2

I've updated the Dockerfile to test the new vault in a beta branch here:
https://github.com/dani-garcia/bitwarden_rs/tree/beta

It's basically untested for now, but it compiles correctly and sets the corrects URLS.

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024 2

Latest beta image is now built with the latest Vault v2 related fixes. We believe most of the bugs should be resolved. Please test mprasil/bitwarden:beta if anyone is interested and if no blockers pop up, we might get @dani-garcia to merge this into master. 🎉

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024 1

If anyone is interested, I've triggered another build with latest Vault code from master branch, should have couple new features and also translations. (btw, please do help translating in the upstream project) The image should be built in about an hour.

from vaultwarden.

dani-garcia avatar dani-garcia commented on August 27, 2024 1

The new web vault is live in the 1.0.0 release now. If there are any bugs, please open a new issue!

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024

If anyone want's to help building the web application, it would be very welcome. Anyone familiar with node and npm can probably modify the Dockerfile easily.

from vaultwarden.

mannp avatar mannp commented on August 27, 2024

Thanks for making the changes :)

I used your dockerfile and get the following error trying to build it:

Step 6/32 : WORKDIR /web-build Removing intermediate container e191ca5d2673 ---> 75a9f96b0ca6

Step 7/32 : COPY docker/set-vault-baseurl.patch /web-build/ COPY failed: stat /var/lib/docker/tmp/docker-builder028410783/docker/set-vault-baseurl.patch: no such file or directory

from vaultwarden.

dani-garcia avatar dani-garcia commented on August 27, 2024

Strange, it works on Windows for me. I added a missing slash that was removed in this beta branch in the last commit. Hopefully that fixes it.

from vaultwarden.

mannp avatar mannp commented on August 27, 2024

Not sure if I missed something, so will take another look tomorrow;

Step 7/32 : COPY /docker/set-vault-baseurl.patch /web-build/ COPY failed: stat /var/lib/docker/tmp/docker-builder179203441/docker/set-vault-baseurl.patch: no such file or directory

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024

The latest commit seems to be working fine, I've triggered a build on docker hub for this, if anyone want's to give this a go, please use mprasil/bitwarden:beta image.

from vaultwarden.

mannp avatar mannp commented on August 27, 2024

This one doesn't work at all;

https://github.com/dani-garcia/bitwarden_rs/blob/beta/Dockerfile

Seems there are a number of changes required to make it compatible, so will try testing later.

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024

@mannp there must be something wrong with your setup. I've successfully built mprasil/bitwarden:beta straight out of repository. Are you sure you have clean, updated workspace checked out?

from vaultwarden.

mannp avatar mannp commented on August 27, 2024

Its the first time I have had an issue, just pasting the dockerfile as is into bitbucket as is and creating an automated build from it on dockerhub.

My other builds work fine that way, so perhaps the patch is not pulled from the dockerfile and needs to be pulled locally first.

Its not an issue as I was just trying before your 'official' build came out, but it seems there are a few broken items with the new web-vault, so will wait until you have the time to further update.

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024

Yeah this whole thing is to prepare for Vault 2 release. It hasn't even been released upstream, so there's no rush, but any help with testing it is welcome.

from vaultwarden.

dani-garcia avatar dani-garcia commented on August 27, 2024

If you are copying only the Dockerfile it makes sense that it doesn't work. You also need to copy the docker folder (that should contain a .patch file)

from vaultwarden.

mannp avatar mannp commented on August 27, 2024

I'd presumed wrongly that the docker would pull in all necessary dependencies, including the patch itself rather than having to patch locally.

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024

I've just pushed latest build of beta out and mprasil/bitwarden:beta is now ready to be tested. Maybe give it a spin, see if anything is broken since 2.0.0. If not I believe we've fixed all bugs we've found so far and this beta might be ready to be merged to master. What do you think @dani-garcia?

(also upstream Vault seems to be stabilized a bit and many minor issues are fixed on their side)

from vaultwarden.

mannp avatar mannp commented on August 27, 2024

Did the 2FA issue get fixed before you merge to master by any chance?

V1 is working nicely here :)

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024

Can you test with the latest beta image? Just to see if it wasn't some upstream bug. I don't think the 2fa code is different between V1 and V2, so that's definitely strange. Are you running the versions with exact same setup?

from vaultwarden.

mannp avatar mannp commented on August 27, 2024

I have used the exact same setup, the exact same ssl certs with one docker v1 and one v2.

V1 registers the Authenticator fine but v2 fails.

#105

from vaultwarden.

mprasil avatar mprasil commented on August 27, 2024

Okay, so the #124 is outstanding for the V2.

from vaultwarden.

Related Issues (20)

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.