Merge branch '10_env_image' of ssh://gitea.dmz.rs:2222/sborovic/dmzOS into 10-env_image
This commit is contained in:
commit
af9befd937
|
@ -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" ]
|
|
@ -0,0 +1,7 @@
|
|||
set nobackup
|
||||
set nowritebackup
|
||||
set noswapfile
|
||||
set autoread
|
||||
|
||||
set number relativenumber
|
||||
autocmd BufWritePost *.[ch] exec "!indent -kr -nut % && rm %~"
|
Binary file not shown.
Binary file not shown.
|
@ -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;
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue