first docker compose

This commit is contained in:
hugogogo
2022-08-27 23:01:01 +02:00
parent 90680662fc
commit 9dedc02052
8 changed files with 53 additions and 33 deletions

View File

@@ -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
# [...]

View File

@@ -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

View File

@@ -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

View File

View 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" ]

Binary file not shown.

View 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