Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Nov 29, 2024
1 parent 83cdb5a commit 83809b7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ WORKDIR /app
ARG COMMIT

# Copy csproj and restore as distinct layers
COPY ./NineChronicles.Headless/Lib9c/Directory.Build.props ./NineChronicles.Headless/Lib9c/
COPY ./NineChronicles.Headless/Lib9c/Lib9c/Lib9c.csproj ./NineChronicles.Headless/Lib9c/Lib9c/
COPY ./NineChronicles.Headless/Libplanet.Headless/Libplanet.Headless.csproj ./NineChronicles.Headless/Libplanet.Headless/
COPY ./NineChronicles.Headless/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared.csproj ./NineChronicles.Headless/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared/
COPY ./NineChronicles.Headless/Directory.Build.props ./NineChronicles.Headless/
COPY ./NineChronicles.Headless/NineChronicles.Headless/NineChronicles.Headless.csproj ./NineChronicles.Headless/NineChronicles.Headless/
COPY ./NineChronicles.Headless/NineChronicles.Headless.Executable/NineChronicles.Headless.Executable.csproj ./NineChronicles.Headless/NineChronicles.Headless.Executable/
COPY ./NineChronicles.DataProvider/NineChronicles.DataProvider.csproj ./NineChronicles.DataProvider/
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ WORKDIR /app
ARG COMMIT

# Copy csproj and restore as distinct layers
COPY ./NineChronicles.Headless/Lib9c/Directory.Build.props ./NineChronicles.Headless/Lib9c/
COPY ./NineChronicles.Headless/Lib9c/Lib9c/Lib9c.csproj ./NineChronicles.Headless/Lib9c/Lib9c/
COPY ./NineChronicles.Headless/Libplanet.Headless/Libplanet.Headless.csproj ./NineChronicles.Headless/Libplanet.Headless/
COPY ./NineChronicles.Headless/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared.csproj ./NineChronicles.Headless/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared/
COPY ./NineChronicles.Headless/Directory.Build.props ./NineChronicles.Headless/
COPY ./NineChronicles.Headless/NineChronicles.Headless/NineChronicles.Headless.csproj ./NineChronicles.Headless/NineChronicles.Headless/
COPY ./NineChronicles.Headless/NineChronicles.Headless.Executable/NineChronicles.Headless.Executable.csproj ./NineChronicles.Headless/NineChronicles.Headless.Executable/
COPY ./NineChronicles.DataProvider/NineChronicles.DataProvider.csproj ./NineChronicles.DataProvider/
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.arm64v8
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ WORKDIR /app
ARG COMMIT

# Copy csproj and restore as distinct layers
COPY ./NineChronicles.Headless/Lib9c/Directory.Build.props ./NineChronicles.Headless/Lib9c/
COPY ./NineChronicles.Headless/Lib9c/Lib9c/Lib9c.csproj ./NineChronicles.Headless/Lib9c/Lib9c/
COPY ./NineChronicles.Headless/Libplanet.Headless/Libplanet.Headless.csproj ./NineChronicles.Headless/Libplanet.Headless/
COPY ./NineChronicles.Headless/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared.csproj ./NineChronicles.Headless/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared/
COPY ./NineChronicles.Headless/Directory.Build.props ./NineChronicles.Headless/
COPY ./NineChronicles.Headless/NineChronicles.Headless/NineChronicles.Headless.csproj ./NineChronicles.Headless/NineChronicles.Headless/
COPY ./NineChronicles.Headless/NineChronicles.Headless.Executable/NineChronicles.Headless.Executable.csproj ./NineChronicles.Headless/NineChronicles.Headless.Executable/
COPY ./NineChronicles.DataProvider/NineChronicles.DataProvider.csproj ./NineChronicles.DataProvider/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ string date
Port = mysqlPort,
AllowLoadLocalInfile = true,
AllowUserVariables = true,
ConnectionTimeout = 1800,
DefaultCommandTimeout = 1800,
ConnectionTimeout = 36000,
DefaultCommandTimeout = 36000,
};

_connectionString = builder.ConnectionString;
Expand All @@ -82,7 +82,7 @@ string date
$"SELECT COUNT(DISTINCT Signer) as 'Unique Address' FROM Transactions WHERE Date = '{date}'";
connection.Open();
var dauCommand = new MySqlCommand(dauQuery, connection);
dauCommand.CommandTimeout = 3600;
dauCommand.CommandTimeout = 36000;
var dauReader = dauCommand.ExecuteReader();
while (dauReader.Read())
{
Expand All @@ -104,7 +104,7 @@ string date
$"SELECT COUNT(TxId) as 'Transactions' FROM Transactions WHERE Date = '{date}'";
connection.Open();
var txCountCommand = new MySqlCommand(txCountQuery, connection);
txCountCommand.CommandTimeout = 3600;
txCountCommand.CommandTimeout = 36000;
var txCountReader = txCountCommand.ExecuteReader();
while (txCountReader.Read())
{
Expand All @@ -126,7 +126,7 @@ string date
$"select count(Signer) from Transactions WHERE ActionType = 'ApprovePledge' AND Date = '{date}'";
connection.Open();
var newDauCommand = new MySqlCommand(newDauQuery, connection);
newDauCommand.CommandTimeout = 3600;
newDauCommand.CommandTimeout = 36000;
var newDauReader = newDauCommand.ExecuteReader();
while (newDauReader.Read())
{
Expand All @@ -147,7 +147,7 @@ string date
var hasCountQuery = $"select count(Id) as 'Count' from HackAndSlashes where Date = '{date}'";
connection.Open();
var hasCountCommand = new MySqlCommand(hasCountQuery, connection);
hasCountCommand.CommandTimeout = 3600;
hasCountCommand.CommandTimeout = 36000;
var hasCountReader = hasCountCommand.ExecuteReader();
while (hasCountReader.Read())
{
Expand All @@ -169,7 +169,7 @@ string date
$"select COUNT(DISTINCT AgentAddress) as 'Player Count' from HackAndSlashes where Date = '{date}'";
connection.Open();
var hasUsersCommand = new MySqlCommand(hasUsersQuery, connection);
hasUsersCommand.CommandTimeout = 3600;
hasUsersCommand.CommandTimeout = 36000;
var hasUsersReader = hasUsersCommand.ExecuteReader();
while (hasUsersReader.Read())
{
Expand All @@ -190,7 +190,7 @@ string date
var sweepCountQuery = $"select count(Id) as 'Count' from HackAndSlashSweeps where Date = '{date}'";
connection.Open();
var sweepCountCommand = new MySqlCommand(sweepCountQuery, connection);
sweepCountCommand.CommandTimeout = 3600;
sweepCountCommand.CommandTimeout = 36000;
var sweepCountReader = sweepCountCommand.ExecuteReader();
while (sweepCountReader.Read())
{
Expand All @@ -212,7 +212,7 @@ string date
$"select COUNT(DISTINCT AgentAddress) as 'Player Count' from HackAndSlashSweeps where Date = '{date}'";
connection.Open();
var sweepUsersCommand = new MySqlCommand(sweepUsersQuery, connection);
sweepUsersCommand.CommandTimeout = 3600;
sweepUsersCommand.CommandTimeout = 36000;
var sweepUsersReader = sweepUsersCommand.ExecuteReader();
while (sweepUsersReader.Read())
{
Expand All @@ -234,7 +234,7 @@ string date
$"select count(Id) as 'Count' from CombinationEquipments where Date = '{date}'";
connection.Open();
var combinationEquipmentCountCommand = new MySqlCommand(combinationEquipmentCountQuery, connection);
combinationEquipmentCountCommand.CommandTimeout = 3600;
combinationEquipmentCountCommand.CommandTimeout = 36000;
var combinationEquipmentCountReader = combinationEquipmentCountCommand.ExecuteReader();
while (combinationEquipmentCountReader.Read())
{
Expand All @@ -257,7 +257,7 @@ string date
$"select COUNT(DISTINCT AgentAddress) as 'Player Count' from CombinationConsumables where Date = '{date}'";
connection.Open();
var combinationEquipmentUsersCommand = new MySqlCommand(combinationEquipmentUsersQuery, connection);
combinationEquipmentUsersCommand.CommandTimeout = 3600;
combinationEquipmentUsersCommand.CommandTimeout = 36000;
var combinationEquipmentUsersReader = combinationEquipmentUsersCommand.ExecuteReader();
while (combinationEquipmentUsersReader.Read())
{
Expand All @@ -280,7 +280,7 @@ string date
$"select count(Id) as 'Count' from CombinationConsumables where Date = '{date}'";
connection.Open();
var combinationConsumableCountCommand = new MySqlCommand(combinationConsumableCountQuery, connection);
combinationConsumableCountCommand.CommandTimeout = 3600;
combinationConsumableCountCommand.CommandTimeout = 36000;
var combinationConsumableCountReader = combinationConsumableCountCommand.ExecuteReader();
while (combinationConsumableCountReader.Read())
{
Expand All @@ -303,7 +303,7 @@ string date
$"select COUNT(DISTINCT AgentAddress) as 'Player Count' from CombinationEquipments where Date = '{date}'";
connection.Open();
var combinationConsumableUsersCommand = new MySqlCommand(combinationConsumableUsersQuery, connection);
combinationConsumableUsersCommand.CommandTimeout = 3600;
combinationConsumableUsersCommand.CommandTimeout = 36000;
var combinationConsumableUsersReader = combinationConsumableUsersCommand.ExecuteReader();
while (combinationConsumableUsersReader.Read())
{
Expand All @@ -326,7 +326,7 @@ string date
$"select count(Id) as 'Count' from ItemEnhancements where Date = '{date}'";
connection.Open();
var itemEnhancementCountCommand = new MySqlCommand(itemEnhancementCountQuery, connection);
itemEnhancementCountCommand.CommandTimeout = 3600;
itemEnhancementCountCommand.CommandTimeout = 36000;
var itemEnhancementCountReader = itemEnhancementCountCommand.ExecuteReader();
while (itemEnhancementCountReader.Read())
{
Expand All @@ -348,7 +348,7 @@ string date
$"select COUNT(DISTINCT AgentAddress) as 'Player Count' from ItemEnhancements where Date = '{date}'";
connection.Open();
var itemEnhancementUsersCommand = new MySqlCommand(itemEnhancementUsersQuery, connection);
itemEnhancementUsersCommand.CommandTimeout = 3600;
itemEnhancementUsersCommand.CommandTimeout = 36000;
var itemEnhancementUsersReader = itemEnhancementUsersCommand.ExecuteReader();
while (itemEnhancementUsersReader.Read())
{
Expand All @@ -370,7 +370,7 @@ string date
$"select SUM(SummonCount) from AuraSummons where GroupId = '10002' AND Date = '{date}'";
connection.Open();
var auraSummonCommand = new MySqlCommand(auraSummonQuery, connection);
auraSummonCommand.CommandTimeout = 3600;
auraSummonCommand.CommandTimeout = 36000;
var auraSummonReader = auraSummonCommand.ExecuteReader();
while (auraSummonReader.Read())
{
Expand All @@ -391,7 +391,7 @@ string date
var runeSummonQuery = $"select SUM(SummonCount) from RuneSummons where Date = '{date}'";
connection.Open();
var runeSummonCommand = new MySqlCommand(runeSummonQuery, connection);
runeSummonCommand.CommandTimeout = 3600;
runeSummonCommand.CommandTimeout = 36000;
var runeSummonReader = runeSummonCommand.ExecuteReader();
while (runeSummonReader.Read())
{
Expand All @@ -412,7 +412,7 @@ string date
var apUsageQuery = $"select SUM(ApStoneCount) from HackAndSlashSweeps where Date = '{date}'";
connection.Open();
var apUsageCommand = new MySqlCommand(apUsageQuery, connection);
apUsageCommand.CommandTimeout = 3600;
apUsageCommand.CommandTimeout = 36000;
var apUsageReader = apUsageCommand.ExecuteReader();
while (apUsageReader.Read())
{
Expand All @@ -433,7 +433,7 @@ string date
var hourglassUsageQuery = $"SELECT SUM(HourglassCount) FROM RapidCombinations WHERE Date = '{date}'";
connection.Open();
var hourglassUsageCommand = new MySqlCommand(hourglassUsageQuery, connection);
hourglassUsageCommand.CommandTimeout = 3600;
hourglassUsageCommand.CommandTimeout = 36000;
var hourglassUsageReader = hourglassUsageCommand.ExecuteReader();
while (hourglassUsageReader.Read())
{
Expand All @@ -460,7 +460,7 @@ string date
) a";
connection.Open();
var ncgTradeCommand = new MySqlCommand(ncgTradeQuery, connection);
ncgTradeCommand.CommandTimeout = 3600;
ncgTradeCommand.CommandTimeout = 36000;
var ncgTradeReader = ncgTradeCommand.ExecuteReader();
while (ncgTradeReader.Read())
{
Expand All @@ -482,7 +482,7 @@ string date
$"SELECT sum(BurntNCG) as 'Enhance NCG(Amount)' from ItemEnhancements where Date = '{date}'";
connection.Open();
var enhanceNcgCommand = new MySqlCommand(enhanceNcgQuery, connection);
enhanceNcgCommand.CommandTimeout = 3600;
enhanceNcgCommand.CommandTimeout = 36000;
var enhanceNcgReader = enhanceNcgCommand.ExecuteReader();
while (enhanceNcgReader.Read())
{
Expand All @@ -504,7 +504,7 @@ string date
$"SELECT sum(BurntNCG) as 'Rune NCG(Amount)' from RuneEnhancements where Date = '{date}'";
connection.Open();
var runeNcgCommand = new MySqlCommand(runeNcgQuery, connection);
runeNcgCommand.CommandTimeout = 3600;
runeNcgCommand.CommandTimeout = 36000;
var runeNcgReader = runeNcgCommand.ExecuteReader();
while (runeNcgReader.Read())
{
Expand All @@ -526,7 +526,7 @@ string date
$"SELECT sum(BurntNCG) as 'RuneSlot NCG(Amount)' from UnlockRuneSlots where Date = '{date}'";
connection.Open();
var runeSlotNcgCommand = new MySqlCommand(runeSlotNcgQuery, connection);
runeSlotNcgCommand.CommandTimeout = 3600;
runeSlotNcgCommand.CommandTimeout = 36000;
var runeSlotNcgReader = runeSlotNcgCommand.ExecuteReader();
while (runeSlotNcgReader.Read())
{
Expand All @@ -548,7 +548,7 @@ string date
$"SELECT sum(BurntNCG) as 'Arena NCG(Amount)' from BattleArenas where Date = '{date}'";
connection.Open();
var arenaNcgCommand = new MySqlCommand(arenaNcgQuery, connection);
arenaNcgCommand.CommandTimeout = 3600;
arenaNcgCommand.CommandTimeout = 36000;
var arenaNcgReader = arenaNcgCommand.ExecuteReader();
while (arenaNcgReader.Read())
{
Expand All @@ -570,7 +570,7 @@ string date
$"SELECT sum(BurntNCG) as 'EventTicket NCG' from EventDungeonBattles where Date = '{date}'";
connection.Open();
var eventTicketNcgCommand = new MySqlCommand(eventTicketNcgQuery, connection);
eventTicketNcgCommand.CommandTimeout = 3600;
eventTicketNcgCommand.CommandTimeout = 36000;
var eventTicketNcgReader = eventTicketNcgCommand.ExecuteReader();
while (eventTicketNcgReader.Read())
{
Expand Down

0 comments on commit 83809b7

Please sign in to comment.