You can create your own project, or import DEv-CF model project [here]().
Open Eclipse, create your own project or import the devs-dclitest project [here](https://gitlab.lis-lab.fr/thi-phuong.kieu/devs-dclitest/-/blob/main/devs-dclitest.zip).
### Install Eclipse Docker Tooling
...
...
@@ -61,3 +61,186 @@ If unsuccessfully, install manually follow these steps:
4. Check the Docker Tooling option and install.
### Write Dockerfile script
Create and file named *Dockerfile* under the project folder, and insert this script:
If successfully, right click on the main class, then *Run As* → *Java Application in Container*.

**Note:** In case Docker Tooling has some problems, install Docker on Ubuntu (follow guildlines [here](https://docs.docker.com/engine/install/ubuntu/)). Then build and run docker by command line:
```bash
docker build -t devs-dcli:test .
```
```bash
docker run -it devs-dcli:test
```
### Initialize a project using a customized Devcontainer configuration
On Terminal, type:
```bash
dcli init
```
Insert image name of docker created:
```bash
Image Name: devs-dcli:test
```
### Test running the DevContainer
Type :
```bash
dcli start
```
You will see the VSCode workspace opened. Test running the java program inside the DevContainer, type: