Skip to content

Commit 56aa1da

Browse files
efraespadaactions-user
authored andcommitted
gh-action: updated compiled files
1 parent 8a02c69 commit 56aa1da

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

dist/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157881,7 +157881,7 @@ class DockerRepository {
157881157881
context: this.dockerDir,
157882157882
src: ['Dockerfile', 'requirements.txt', 'main.py']
157883157883
}, { t: 'fastapi-app' });
157884-
await new Promise((resolve, reject) => {
157884+
const result = await new Promise((resolve, reject) => {
157885157885
this.docker.modem.followProgress(stream, (err, res) => {
157886157886
if (err) {
157887157887
(0, logger_1.logError)('🐳 🔴 Error building image: ' + err);
@@ -157897,6 +157897,7 @@ class DockerRepository {
157897157897
}
157898157898
});
157899157899
});
157900+
(0, logger_1.logDebugInfo)('🐳 🟡 Image build result: ' + result);
157900157901
(0, logger_1.logDebugInfo)('🐳 🟡 Creating container...');
157901157902
// Create and start the container
157902157903
const container = await this.docker.createContainer({
@@ -158018,7 +158019,12 @@ class DockerRepository {
158018158019
throw error;
158019158020
}
158020158021
};
158022+
// const dockerHost = process.env.DOCKER_HOST;
158023+
// if (dockerHost) {
158024+
// this.docker = new Docker({ socketPath: dockerHost.replace('unix://', '') });
158025+
// } else {
158021158026
this.docker = new dockerode_1.default();
158027+
// }
158022158028
this.dockerDir = path_1.default.join(process.cwd(), 'docker');
158023158029
}
158024158030
static getInstance() {

0 commit comments

Comments
 (0)