Skip to content

Commit eec72a4

Browse files
committed
Initial commit for new architecture
1 parent 22b2d91 commit eec72a4

File tree

11 files changed

+106
-18
lines changed

11 files changed

+106
-18
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.swp
2+
.stats_cache
File renamed without changes.

Dockerfile renamed to build/Dockerfile

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# start from a base ubuntu image
22
FROM ubuntu
3-
MAINTAINER Cass Johnston <cassjohnston@gmail.com>
3+
LABEL author="Alejandro Piad <alepiad@gmail.com>"
44

55
# set users cfg file
66
ARG USERS_CFG=users.json
@@ -16,19 +16,22 @@ RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1616

1717
# Fetch brat
1818
RUN mkdir /var/www/brat
19-
RUN curl http://weaver.nlplab.org/~brat/releases/brat-v1.3_Crunchy_Frog.tar.gz > /var/www/brat/brat-v1.3_Crunchy_Frog.tar.gz
19+
RUN curl http://weaver.nlplab.org/~brat/releases/brat-v1.3_Crunchy_Frog.tar.gz > /var/www/brat/brat-v1.3_Crunchy_Frog.tar.gz
2020
RUN cd /var/www/brat && tar -xvzf brat-v1.3_Crunchy_Frog.tar.gz
2121

2222
# create a symlink so users can mount their data volume at /bratdata rather than the full path
23-
RUN mkdir /bratdata && mkdir /bratcfg
24-
RUN chown -R www-data:www-data /bratdata /bratcfg
23+
RUN mkdir -p /bratdata/gia && mkdir /bratcfg
24+
RUN chown -R www-data:www-data /bratdata /bratcfg
2525
RUN chmod o-rwx /bratdata /bratcfg
2626
RUN ln -s /bratdata /var/www/brat/brat-v1.3_Crunchy_Frog/data
27-
RUN ln -s /bratcfg /var/www/brat/brat-v1.3_Crunchy_Frog/cfg
27+
RUN ln -s /bratcfg /var/www/brat/brat-v1.3_Crunchy_Frog/cfg
2828

2929
# And make that location a volume
30-
VOLUME /bratdata
31-
VOLUME /bratcfg
30+
VOLUME /bratdata/gia
31+
32+
ENV BRAT_USERNAME="gia"
33+
ENV BRAT_PASSWORD="gia"
34+
ENV BRAT_EMAIL="gia@matcom.uh.cu"
3235

3336
ADD brat_install_wrapper.sh /usr/bin/brat_install_wrapper.sh
3437
RUN chmod +x /usr/bin/brat_install_wrapper.sh
@@ -46,15 +49,10 @@ RUN a2enmod cgi
4649

4750
EXPOSE 80
4851

49-
# We can't use apachectl as an entrypoint because it starts apache and then exits, taking your container with it.
52+
# We can't use apachectl as an entrypoint because it starts apache and then exits, taking your container with it.
5053
# Instead, use supervisor to monitor the apache process
5154
RUN mkdir -p /var/log/supervisor
5255

53-
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
56+
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
5457

5558
CMD ["/usr/bin/supervisord"]
56-
57-
58-
59-
60-
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
cd /var/www/brat/brat-v1.3_Crunchy_Frog && /var/www/brat/brat-v1.3_Crunchy_Frog/install.sh <<EOD
4-
$BRAT_USERNAME
5-
$BRAT_PASSWORD
3+
cd /var/www/brat/brat-v1.3_Crunchy_Frog && /var/www/brat/brat-v1.3_Crunchy_Frog/install.sh <<EOD
4+
$BRAT_USERNAME
5+
$BRAT_PASSWORD
66
$BRAT_EMAIL
77
EOD
88

@@ -11,6 +11,6 @@ chown -R www-data:www-data /bratdata
1111
# patch the user config with more users
1212
python /var/www/brat/brat-v1.3_Crunchy_Frog/user_patch.py
1313

14-
echo "Install complete. You can log in as: $BRAT_USERNAME"
14+
echo "Install complete. You can log in as: $BRAT_USERNAME with password: $BRAT_PASSWORD."
1515

1616
exit 0
File renamed without changes.
File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[entities]
2+
Object
3+
Person
4+
Location
5+
Date
6+
Role
7+
Reference
8+
9+
[relations]
10+
refers-to Arg1:Reference, Arg2:<ENTITY>
11+
12+
[events]
13+
Action Subject:<ENTITY>|Action, Target:<ENTITY>|Action
14+
15+
[attributes]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
T1 Person 0 17 Donald John Trump
2+
T2 Role 63 72 President
3+
T3 Location 80 93 United States
4+
T4 Action 73 79 of the
5+
E1 Action:T4 Subject:T2 Target:T3
6+
T5 Action 39 41 is
7+
E2 Action:T5 Subject:T1 Target:E1
8+
E3 Action:T5 Subject:T1 Target:T6
9+
T6 Object 95 104 in office
10+
T7 Date 111 127 January 20, 2017
11+
T8 Action 105 110 since
12+
E4 Action:T8 Subject:E3 Target:T7
13+
T9 Location 2357 2366 Jerusalem
14+
T10 Location 2385 2391 Israel
15+
T11 Action 2374 2384 capital of
16+
E5 Action:T11 Subject:T9 Target:T10
17+
T12 Reference 2106 2108 he
18+
T13 Location 2122 2135 United States
19+
T14 Object 2145 2170 Trans-Pacific Partnership
20+
T15 Action 2109 2117 withdrew
21+
E6 Action:T15 Subject:T13 Target:T14
22+
E7 Action:T15 Subject:T12 Target:E6
23+
T16 Action 2346 2356 recognized
24+
E8 Action:T16 Subject:T12 Target:E5
25+
E9 Action:T15 Subject:T13 Target:T17
26+
T17 Object 2184 2199 Paris Agreement
27+
T18 Object 2242 2252 Cuban Thaw
28+
T19 Action 2229 2237 reversed
29+
E10 Action:T19 Subject:T12 Target:T18
30+
T20 Action 1048 1069 expressed interest in
31+
E11 Action:T20 Subject:T21 Target:T22
32+
T21 Person 1038 1043 Trump
33+
T22 Object 1070 1078 politics
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Donald John Trump (born June 14, 1946) is the 45th and current President of the United States, in office since January 20, 2017. Before entering politics, he was a businessman and television personality.
2+
Trump was born and grew up in the New York City borough of Queens.
3+
He earned an economics degree from the Wharton School of the University of Pennsylvania and followed his grandmother Elizabeth and father Fred in running the family real estate company.
4+
He renamed it The Trump Organization, and ran it from 1971 until his 2017 inauguration.
5+
Trump's real estate career focused on building or renovating skyscrapers, hotels, casinos, and golf courses.
6+
He has also started multiple side ventures, branded and licensed his name for real estate and various products, and co-authored several books.
7+
Additionally, he produced and hosted The Apprentice, a reality television game show about business, from 2003 to 2015.
8+
According to Forbes, he was the world's 544th richest person as of May 2017, with an estimated net worth of $3.5 billion.
9+
Trump had expressed interest in politics as early as 1987.
10+
He entered the 2016 presidential race as a Republican and defeated sixteen opponents in the primaries.
11+
Commentators described his political positions as populist, protectionist, and nationalist.
12+
His campaign received extensive free media coverage; many of his public statements were controversial or false.
13+
Trump won the general election on November 8, 2016 against Democratic opponent Hillary Clinton.
14+
He became the oldest and wealthiest person ever to assume the presidency, the first without prior military or government service, and the fifth to have won the election despite getting less of the popular vote.
15+
His election and policies have sparked numerous protests.
16+
In domestic policy, Trump has unsuccessfully sought to repeal and replace the Affordable Care Act.
17+
He appointed Neil Gorsuch to the Supreme Court.
18+
Citing security concerns, he ordered a travel ban on citizens from several Muslim-majority countries; a revised version of the ban was implemented after legal challenges.
19+
In foreign policy, he withdrew the United States from the Trans-Pacific Partnership and from the Paris Agreement on climate change, partially reversed the Cuban Thaw, pressured North Korea over the acceleration of their missile tests and nuclear program, and recognized Jerusalem as the capital of Israel.
20+
After Trump dismissed FBI Director James Comey, the Justice Department appointed a special counsel to continue the investigation into potential links between Russia and Trump campaign associates, and any related matters.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[drawing]
2+
Object bgColor:#c767e7
3+
Person bgColor:#c767e7
4+
Role bgColor:#c767e7
5+
Date bgColor:#c767e7
6+
Location bgColor:#c767e7
7+
Reference bgColor:#c767e7
8+
9+
Action bgColor:#ec3838
10+
11+
[labels]

0 commit comments

Comments
 (0)