add docker images.
Some checks failed
Deploy / PullDocker (push) Successful in 4s
Deploy / Build (push) Failing after 34s
Deploy Docker Images / Docusaurus build and Server deploy (push) Successful in 13s

This commit is contained in:
luocai 2024-11-06 15:51:01 +08:00
parent e1273a3eb9
commit 4021ffa190
3 changed files with 15 additions and 8 deletions

View File

@ -5,7 +5,12 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \ RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \
&& sed -i "s@http://.*security.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \ && sed -i "s@http://.*security.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \
&& apt update \ && apt update \
&& apt install -y git lz4 unzip python3-pip && apt install -y curl git lz4 unzip python3-pip \
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt update \
&& apt install -y nodejs \
&& apt clean \
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip3 install yoctools pyyaml && cd /usr/bin && ln -s python3 python RUN pip3 install yoctools pyyaml && cd /usr/bin && ln -s python3 python

View File

@ -1,11 +1,11 @@
#include "BlogSession.h" #include "BlogSession.h"
#include <Wt/Auth/AuthService.h> #include <Wt/Auth/AuthService.h>
#include <Wt/Auth/GoogleService.h>
#include <Wt/Auth/HashFunction.h> #include <Wt/Auth/HashFunction.h>
#include <Wt/Auth/PasswordService.h> #include <Wt/Auth/PasswordService.h>
#include <Wt/Dbo/FixedSqlConnectionPool.h>
#include <Wt/Auth/PasswordVerifier.h>
#include <Wt/Auth/PasswordStrengthValidator.h> #include <Wt/Auth/PasswordStrengthValidator.h>
#include <Wt/Auth/GoogleService.h> #include <Wt/Auth/PasswordVerifier.h>
#include <Wt/Dbo/FixedSqlConnectionPool.h>
class BlogOAuth : public std::vector<const Wt::Auth::OAuthService *> { class BlogOAuth : public std::vector<const Wt::Auth::OAuthService *> {
public: public:
@ -57,6 +57,10 @@ Wt::Dbo::ptr<User> BlogSession::user() const {
return Wt::Dbo::ptr<User>(); return Wt::Dbo::ptr<User>();
} }
Wt::Signal<Wt::Dbo::ptr<Comment>> &BlogSession::commentsChanged() {
return m_commentsChanged;
}
Wt::Auth::PasswordService *BlogSession::passwordAuth() const { Wt::Auth::PasswordService *BlogSession::passwordAuth() const {
return &blogPasswords; return &blogPasswords;
} }

View File

@ -19,9 +19,7 @@ public:
return m_login; return m_login;
} }
Wt::Dbo::ptr<User> user() const; Wt::Dbo::ptr<User> user() const;
Wt::Signal<Wt::Dbo::ptr<Comment>> &commentsChanged() { Wt::Signal<Wt::Dbo::ptr<Comment>> &commentsChanged();
return commentsChanged_;
}
BlogUserDatabase &users() { BlogUserDatabase &users() {
return m_users; return m_users;
} }
@ -32,6 +30,6 @@ private:
Wt::Dbo::SqlConnectionPool &m_connectionPool; Wt::Dbo::SqlConnectionPool &m_connectionPool;
BlogUserDatabase m_users; BlogUserDatabase m_users;
Wt::Auth::Login m_login; Wt::Auth::Login m_login;
Wt::Signal<Wt::Dbo::ptr<Comment>> commentsChanged_; Wt::Signal<Wt::Dbo::ptr<Comment>> m_commentsChanged;
}; };
#endif // __BLOGSESSION_H__ #endif // __BLOGSESSION_H__