Move alpine dockerfile to root and update viserion configuration.
parent
5775e07235
commit
91e70859a0
|
@ -19,7 +19,8 @@ builds:
|
||||||
source: /v(.+)/
|
source: /v(.+)/
|
||||||
target: docker.dreamnetwork.oss:5000/icedream/test-repo:$1
|
target: docker.dreamnetwork.oss:5000/icedream/test-repo:$1
|
||||||
|
|
||||||
- context: alpine
|
- context: .
|
||||||
|
dockerfile: Dockerfile.alpine
|
||||||
tags:
|
tags:
|
||||||
# Git branch "master" -> Docker tag "latest"
|
# Git branch "master" -> Docker tag "latest"
|
||||||
- from: branch
|
- from: branch
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <pwd.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
extern char *program_invocation_name;
|
|
||||||
extern char *program_invocation_short_name;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
register struct passwd *pw;
|
|
||||||
register uid_t uid;
|
|
||||||
|
|
||||||
printf("This is %s speaking.\n", program_invocation_name);
|
|
||||||
|
|
||||||
uid = geteuid();
|
|
||||||
pw = getpwuid(uid);
|
|
||||||
|
|
||||||
if (pw)
|
|
||||||
{
|
|
||||||
printf("Hello, %s!\n", pw->pw_name);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("I don't know your name but your ID is %d!\n", (unsigned) uid);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue