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