forked from sborovic/dmzOS
1
0
Fork 0

Merge branch '10_env_image' of ssh://gitea.dmz.rs:2222/sborovic/dmzOS into 10-env_image

This commit is contained in:
sborovic 2024-02-17 13:29:33 +01:00
commit af9befd937
Signed by: sborovic
GPG Key ID: AD6785925E393BCF
7 changed files with 36 additions and 0 deletions

0
.gitignore vendored Normal file
View File

View File

@ -0,0 +1,4 @@
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y vim gcc indent clang clang-format gdb binutils nasm xxd llvm lld
WORKDIR /dmzOS
ENTRYPOINT [ "bash" ]

7
config/.vimrc Normal file
View File

@ -0,0 +1,7 @@
set nobackup
set nowritebackup
set noswapfile
set autoread
set number relativenumber
autocmd BufWritePost *.[ch] exec "!indent -kr -nut % && rm %~"

BIN
dmzOS/test/clang_test Executable file

Binary file not shown.

BIN
dmzOS/test/gcc_test Executable file

Binary file not shown.

12
dmzOS/test/test.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc < 2) {
printf("Please provide at least one argument\n");
exit(1);
};
printf("Hello, C!\n");
return 0;
}

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3.8'
services:
c_toolchain:
build:
context: ./Dockerfiles
dockerfile: dockerfile.c_toolchain
container_name: c_toolchain
tty: true
stdin_open: true
volumes:
- ./dmzOS:/dmzOS
- ./config/.vimrc:/root/.vimrc