mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.6 KiB
62 lines
1.6 KiB
2 years ago
|
## Introduction
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
#### 1- get-ready
|
||
|
|
||
|
Create in your [Gitea](<https://((DOMAIN))/git>) account the repository named `((ROOT))`.
|
||
|
|
||
|
This repository will be the folder where all the exercises must be uploaded.
|
||
|
|
||
|
Once created, clone that repository on your desktop.
|
||
|
|
||
|
To do so, open a Unix shell (e.g. Git Bash on Windows), you are going to type commands in it.
|
||
|
|
||
|
First, tell Git to remember your password (like a web browser would):
|
||
|
|
||
|
```
|
||
|
git config --global credential.helper store
|
||
|
```
|
||
|
|
||
|
If your username was `01-user` this is the command that will need to be used:
|
||
|
|
||
|
```
|
||
|
git clone https://((DOMAIN))/git/01-user/((ROOT)).git
|
||
|
```
|
||
|
|
||
|
This command needs to be adapted with **your own username**.
|
||
|
|
||
|
#### 2- set
|
||
|
|
||
2 years ago
|
Once the repository is created, use you code editor to write your first shell script called `hello-devops.sh`
|
||
2 years ago
|
|
||
|
When executed, this script must print `Hello 01-user!`, where `01-user` is your username.
|
||
|
|
||
|
##### Usage
|
||
|
|
||
|
If the username is `01-user`:
|
||
|
|
||
|
```console
|
||
2 years ago
|
$ bash hello-devops.sh
|
||
2 years ago
|
Hello 01-user!
|
||
|
$
|
||
|
```
|
||
|
|
||
|
#### 3- go-say-hello
|
||
|
|
||
2 years ago
|
After that the `hello-devops.sh` is executing correctly, it needs to be uploaded to the repository with the following commands:
|
||
2 years ago
|
|
||
2 years ago
|
1. `git add hello-devops.sh`
|
||
2 years ago
|
2. `git commit -m "My very first commit"`
|
||
|
3. `git push`
|
||
|
|
||
|
Once these steps are applied, the file can now be submitted for grading on the platform by clicking on the "RUN INTRODUCTION TEST" button.
|
||
|
|
||
2 years ago
|
This action will run the tests on your submitted `hello-devops.sh` file.
|
||
2 years ago
|
|
||
|
### Recommendation
|
||
|
|
||
|
Videos designed to give **hints** are assigned. It is strongly suggested to watch them as you go.
|
||
|
|
||
|
There are subtitles available in French and English.
|