1
0
mirror of https://github.com/erlang/docker-erlang-example.git synced 2025-12-09 13:41:22 +03:00

Refactoring: Copy minikube example

This commit copies Lukas Larsson's (@garazdawi) and Siri Hansen's
(@sirihansen) example from:

https://github.com/erlang/docker-erlang-example/tree/minikube-dist
This commit is contained in:
Kjell Winblad
2019-05-20 14:13:40 +02:00
parent 61d3fe2a44
commit 81c88928de
25 changed files with 941 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
%%
%% Copyright (C) 2014 Björn-Egil Dahlberg
%%
%% File: dockerwatch_app.erl
%% Author: Björn-Egil Dahlberg
%% Created: 2014-09-10
%%
-module(backend_app).
-behaviour(application).
-export([start/2,stop/1]).
%% API.
start(_Type, _Args) ->
mnesia:change_table_copy_type(schema, node(), disc_copies),
mnesia:create_table(dockerwatch,
[{disc_copies,[node()]},
{ram_copies,[]}]),
{ok, self()}.
stop(_State) ->
ok.