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

feat: Setup Dockerfile for frontend app build #50

Merged

Conversation

ical10
Copy link
Contributor

@ical10 ical10 commented Dec 14, 2023

Closes #29

  • Dockerfile for frontend production app
  • Dockerfile for frontend development
  • Dockerfile for Rust setup & contract deployment

How to run the Dockerfile:

For frontend

  • Make sure a Docker client is installed. I recommend using https://orbstack.dev/ (faster, lightweight alternative to Docker Desktop)
  • Run the containers with docker-compose -f ./docker-compose.frontend.yaml up
  • Open Orbstack, right click on the corresponding container (inkathon-frontend-dev for dev and vice versa), click Open in Browser
  • Remove containers with docker-compose -f ./docker-compose.frontend.yaml down

For contracts

  • Run the container with docker-compose -f ./docker-compose.contracts.yaml up. This process will take some time, please wait. Some logs from the node will show up on your terminal.
  • Open another terminal, and enter the container's shell: docker exec -it substrate-contracts-node /bin/sh
  • cd contracts
  • Run pnpm install -> pnpm run build -> pnpm run deploy
  • Remove containers with docker-compose -f ./docker-compose.frontend.yaml down

@ical10 ical10 self-assigned this Dec 14, 2023
Copy link

changeset-bot bot commented Dec 14, 2023

🦋 Changeset detected

Latest commit: df36d02

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@inkathon/frontend Minor
@inkathon/contracts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
inkathon-xyz ✅ Ready (Inspect) Visit Preview Feb 5, 2024 7:56am

@wottpal
Copy link
Member

wottpal commented Jan 24, 2024

@ical10 Please haver another look on this & compare with your dockerfile. There have been a lot of documentation updates on Next.js self-hosting along Next.js 14.1.0: https://nextjs.org/blog/next-14-1#improved-self-hosting

@wottpal wottpal force-pushed the feat/29-dockerfile-for-development-and-optional-deployment branch from 0133f7d to df36d02 Compare February 5, 2024 07:53
@wottpal wottpal merged commit f50f9d2 into main Feb 5, 2024
1 check was pending
@wottpal wottpal deleted the feat/29-dockerfile-for-development-and-optional-deployment branch February 5, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dockerfile for development & optional deployment
2 participants