Skip to content

Commit

Permalink
Initial version (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: s-celles <[email protected]>
  • Loading branch information
s-celles authored Jan 7, 2025
1 parent df95497 commit d4220f4
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 16 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu

# Prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive

# Install required dependencies
RUN apt-get update && apt-get install -y \
build-essential \
wget \
git \
curl \
gnucobol \
&& rm -rf /var/lib/apt/lists/*
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "COBOL Development",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"bitlang.cobol"
]
}
}
//"remoteUser": "daytona"
}
26 changes: 10 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
This repository contains a README file sample for Daytona Samples and the MIT License.
# Sample COBOL

It can be used as a template to create sample repositories that can be added into [Daytona](https://github.com/daytonaio/daytona).

Once you finish your sample and it gets merged, you can open a PR in the Daytona repo and submit the sample into the [index file](https://github.com/daytonaio/daytona/blob/main/hack/samples/index.json).

# Sample <LANGUAGE/FRAMEWORK>

Sample description
This is an example COBOL project used in Daytona.

---

Expand All @@ -17,18 +11,18 @@ Sample description
1. **Install Daytona**: Follow the [Daytona installation guide](https://www.daytona.io/docs/installation/installation/).
2. **Create the Workspace**:
```bash
daytona create <SAMPLE_REPO_URL>
```

... MORE STEPS IF NEEDED ...

4. **Start the Application**:
daytona create https://github.com/daytonaio/sample-cobol
```
3. **Start the Application**:
```bash
command to start the app
cobc -x -free hello.cob
./hello
```

---

## ✨ Features

List of sample features (e.g. realtime chat app, standardized development environment with devcontainers)
Standardized development environment with devcontainers

Console application
13 changes: 13 additions & 0 deletions hello.cob
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$set sourceformat(free)
*> Hello World COBOL program
IDENTIFICATION DIVISION.
PROGRAM-ID. hello.

ENVIRONMENT DIVISION.

DATA DIVISION.

PROCEDURE DIVISION.
DISPLAY "Hello, World!".
STOP RUN.

0 comments on commit d4220f4

Please sign in to comment.