Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: Added a Dockerimage #238

Merged
merged 10 commits into from
Mar 27, 2023
Merged

client: Added a Dockerimage #238

merged 10 commits into from
Mar 27, 2023

Conversation

Bullrich
Copy link
Contributor

Added a docker image for the client, in the case that we want to deploy the site to any other platform aside from GitHub Pages

@Bullrich Bullrich added the enhancement New feature or request label Mar 20, 2023
@Bullrich Bullrich requested a review from a team as a code owner March 20, 2023 10:59
@Bullrich Bullrich self-assigned this Mar 20, 2023
rzadp
rzadp previously approved these changes Mar 20, 2023
Copy link
Contributor

@PierreBesson PierreBesson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a CI job that pushes this image to paritytech/faucet-ui with the same tags as the backend.

client/Dockerfile Outdated Show resolved Hide resolved
Bullrich added a commit that referenced this pull request Mar 21, 2023
Migrate the site to run in SvelteKit instead of plain Svelte. This will
allow us to run as a Docker image required by #238

Almost all of the code remains the same, the biggest difference is the
new location of files (as SvelteKit requires particular directories) or
the modification of config files (that were replaced by the new
configs).

Another small change is that public variables now need the `PUBLIC_`
prefix instead of the `VITE_` prefix, so we also had to change that
value in the CI.
@Bullrich Bullrich force-pushed the bullrich/client/docker-image branch from 1c5a8de to fac0382 Compare March 21, 2023 14:47
PierreBesson
PierreBesson previously approved these changes Mar 21, 2023
@Bullrich Bullrich force-pushed the bullrich/client/docker-image branch from fac0382 to 00301a6 Compare March 24, 2023 09:43
@Bullrich Bullrich requested review from a team and fevo1971 as code owners March 24, 2023 09:43
@Bullrich
Copy link
Contributor Author

Hi @PierreBesson! I added the logic to build the image and publish it in gitlab-ci.

Could you please review that file and let me know if it is as intended? I'm afraid my knowledge of gitlab's deployment script is not very broad

It was building the root one when it had to build the one in the client
@Bullrich Bullrich force-pushed the bullrich/client/docker-image branch from 5bd2d8e to 44467db Compare March 24, 2023 09:50
@Bullrich Bullrich requested a review from a team March 24, 2023 09:51
@Bullrich Bullrich dismissed stale reviews from rzadp and PierreBesson March 24, 2023 09:51

Too many files changed. I need this to be reviewed again

@Bullrich Bullrich requested a review from rzadp March 24, 2023 09:52
This way the final image occupies less space
@Bullrich Bullrich force-pushed the bullrich/client/docker-image branch from 9650a7e to 4712f4f Compare March 24, 2023 10:06
@rzadp
Copy link
Contributor

rzadp commented Mar 24, 2023

Should we update publish-docker-image-description as well?

@rzadp rzadp requested a review from sergejparity March 24, 2023 12:29
@sergejparity
Copy link
Contributor

Should we update publish-docker-image-description as well?

Yes, this make sense. I'll add the commit for that.

@Bullrich Bullrich enabled auto-merge (squash) March 27, 2023 08:58
@Bullrich
Copy link
Contributor Author

I'll add the commit for that.

Thank you for your help!

@Bullrich Bullrich merged commit 8fa1a4f into main Mar 27, 2023
@Bullrich Bullrich deleted the bullrich/client/docker-image branch March 27, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants