first docker compose
This commit is contained in:
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