first docker compose
This commit is contained in:
17
README.md
17
README.md
@@ -1,18 +1,4 @@
|
||||
|
||||
18 :e open a new file in new buffer
|
||||
19 :b <tab> roll between opened files
|
||||
20 :b <word><tab> auto complete <word> with names of oppened buffers
|
||||
21 :set hidden add that to be able to cancel changes
|
||||
22 :ls list buffer oppened
|
||||
23 :x bw delete buffer number x, even if it's a directory
|
||||
24 :bd delete buffer actual buffer
|
||||
25 :bp go to previous buffer
|
||||
26 :bn go to next buffer
|
||||
27 :b# switch to last edited buffer
|
||||
28 :e C-d print the list of files in current directory
|
||||
29 :e <word>C-d auto complete <word> with a mathing name of files in current directory
|
||||
30 :explore / :ex<tab> navigate through directory, rename, and plus
|
||||
|
||||
# inception
|
||||
|
||||
This README would normally document whatever steps are necessary to get your application up and running.
|
||||
@@ -89,9 +75,10 @@ CMD [ "/hello" ]
|
||||
- [download alpine linux](https://alpinelinux.org/downloads/)
|
||||
- [dockerhub alpine image](https://hub.docker.com/_/alpine)
|
||||
- [docker glossaire](https://docs.docker.com/glossary/)
|
||||
- [syntax of Dockerfile](https://docs.docker.com/engine/reference/builder/)
|
||||
- [Dockerfile syntaxe](https://docs.docker.com/engine/reference/builder/)
|
||||
- [determine the parent image](https://forums.docker.com/t/determine-the-parent-image/48611)
|
||||
- [docker image from scratch](https://codeburst.io/docker-from-scratch-2a84552470c8)
|
||||
- [build context and image context](https://stackoverflow.com/questions/55108649/what-is-app-working-directory-for-a-dockerfile/55109065#55109065)
|
||||
|
||||
#### volumes vs bind mounts
|
||||
|
||||
|
||||
16
srcs/.env
16
srcs/.env
@@ -1,8 +1,8 @@
|
||||
DOMAIN_NAME=wil.42.fr
|
||||
# certificates
|
||||
CERTS_=./XXXXXXXXXXXX
|
||||
# MYSQL SETUP
|
||||
MYSQL_ROOT_PASSWORD=XXXXXXXXXXXX
|
||||
MYSQL_USER=XXXXXXXXXXXX
|
||||
MYSQL_PASSWORD=XXXXXXXXXXXX
|
||||
[...]
|
||||
# DOMAIN_NAME=wil.42.fr
|
||||
# # certificates
|
||||
# CERTS_=./XXXXXXXXXXXX
|
||||
# # MYSQL SETUP
|
||||
# MYSQL_ROOT_PASSWORD=XXXXXXXXXXXX
|
||||
# MYSQL_USER=XXXXXXXXXXXX
|
||||
# MYSQL_PASSWORD=XXXXXXXXXXXX
|
||||
# [...]
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# doc : https://docs.docker.com/compose/compose-file/compose-versioning/
|
||||
# version : https://docs.docker.com/compose/compose-file/compose-versioning/
|
||||
# version to download : https://github.com/docker/compose/releases/
|
||||
# had to remove the apt version because it was not up to date (sudo apt remove docker-compose)
|
||||
# then install as recommended : curl -SL https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||
# or (neat) : https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
test:
|
||||
build:
|
||||
context: ./requirements/test
|
||||
dockerfile: Dockerfile
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
# build this image from parent image alpine:3.16.1
|
||||
# available there : https://hub.docker.com/_/alpine
|
||||
FROM alpine:3.16.1
|
||||
WORKDIR /mariadb
|
||||
#ENV PORT 80
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
0
srcs/requirements/test/.dockerignore
Normal file
0
srcs/requirements/test/.dockerignore
Normal file
14
srcs/requirements/test/Dockerfile
Normal file
14
srcs/requirements/test/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
# find official images : https://hub.docker.com/search
|
||||
#FROM ubuntu:18.04
|
||||
#FROM alpine:3.16.1
|
||||
#FROM debian:buster
|
||||
|
||||
# basic test
|
||||
# build with : sudo docker build --tag test .
|
||||
# run with : sudo docker run test
|
||||
# 'hello' in assembly found here : http://timelessname.com/elfbin/
|
||||
FROM scratch
|
||||
COPY tools/hello /
|
||||
CMD [ "/hello" ]
|
||||
|
||||
BIN
srcs/requirements/test/tools/hello
Executable file
BIN
srcs/requirements/test/tools/hello
Executable file
Binary file not shown.
16
srcs/requirements/test/tools/hello.asm
Normal file
16
srcs/requirements/test/tools/hello.asm
Normal file
@@ -0,0 +1,16 @@
|
||||
SECTION .data
|
||||
msg: db "Hi World",10
|
||||
len: equ $-msg
|
||||
|
||||
SECTION .text
|
||||
global main
|
||||
main:
|
||||
mov edx,len
|
||||
mov ecx,msg
|
||||
mov ebx,1
|
||||
mov eax,4
|
||||
int 0x80
|
||||
mov ebx,0
|
||||
mov eax,1
|
||||
int 0x80
|
||||
|
||||
Reference in New Issue
Block a user