Skip to content

lkeio/gleam-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gleam Docker

This repository includes Dockerfile and Docker Compose setups for Gleam environments. It provides a script that manages tasks like starting and stopping containers, handling Gleam projects, and executing commands for tests, formatting, and more.

Prerequisites

Make sure Docker and Docker Compose are installed on your machine.

Getting Started

Clone your project repository and navigate to the project directory:

git clone [email protected]:lkeio/gleam-docker.git
cd gleam-docker

Usage Instructions

The script provides several commands to manage the Docker environment:

./gleam.sh new <project_name>           # Creates a new Gleam project
./gleam.sh up                           # Starts the Docker container
./gleam.sh down                         # Stops the Docker container
./gleam.sh build [version]              # Builds the Docker container with an optional specified version
./gleam.sh run <project_name>           # Runs the specified Gleam project
./gleam.sh test <project_name>          # Runs tests for the specified project
./gleam.sh format <project_name>        # Formats code in the specified project
./gleam.sh bash                         # Opens a bash shell in the container

Examples

To create a new project named my_app:

./gleam.sh new my_app

To run the my_app project:

./gleam.sh run my_app

To build the Docker container with a specific version of Gleam:

./gleam.sh build 1.1.0

To enter the Docker container using bash:

./gleam.sh bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published