Skip to content

Latest commit

 

History

History
80 lines (48 loc) · 1.32 KB

command.md

File metadata and controls

80 lines (48 loc) · 1.32 KB

For build and run

 docker build -t logiclab .
 docker run -p 3000:3000 logiclab

 For detach mode
 docker run -p 3000:3000 -d logiclab

 TO CHECK WHICH CONTINERS ARE RUNNING
 docker ps
 docker ps -a (for all running as well as stopped containers)


 TO STOP CONTAINER
 docker stop <container_name> or docker stop <container_id>

 TO START CONTAINER
 docker start <container_name> or docker start <container_id>

New docker compose commands for running nextjs project

docker-compose up --build

for mac:
sudo docker compose up

for windows:
docker compose up

to enable watch mode(so that you can see the changes in real time):
enter "w" in the terminal and press enter key.
## Run using docker compose



docker-compose up --build (for building first time)
docker-compose up
docker-compose stop

To generate the defaultTest cases for the problem

ts-node generateTestCase.ts  "../../../problems/Longest-Palindrome-Substring"

To push problem to database (only admin can push the problem to database)

ts-node problem.ts "../../../problems/Longest-Palindrome-Substring" "secret"

Judge0

## Dummy Client

0.0.0.0:2358/dummy-client.html

## languages

0.0.0.0:2358/languages

## Add this line

nvim ~/Library/Group\ Containers/group.com.docker/settings.json

"deprecatedCgroupv1": true,